Description reverse sync statements
TL;DR
Snowflake asset types that description reverse sync supports, and the statement Atlan runs in Snowflake for each one.
Your AI can read this via Docs MCPcurl -fsSL "https://docs.atlan.com/install-docs-mcp" | bashConnect
This reference lists the asset types that description reverse sync supports, and the statement Atlan runs in Snowflake for each one.
Supported asset types
| Atlan asset | Sync scope asset type | Statement Atlan runs in Snowflake |
|---|---|---|
| Database | Database | COMMENT ON DATABASE "<db>" IS '...' |
| Schema | Schema | COMMENT ON SCHEMA "<db>"."<schema>" IS '...' |
| Table, external table | Table | COMMENT ON TABLE "<db>"."<schema>"."<table>" IS '...' |
| Dynamic table | Table | COMMENT ON DYNAMIC TABLE "<db>"."<schema>"."<table>" IS '...' |
| Iceberg table | Table | ALTER ICEBERG TABLE "<db>"."<schema>"."<table>" SET COMMENT = '...' |
| View | View | COMMENT ON VIEW "<db>"."<schema>"."<view>" IS '...' |
| Materialized view | View | COMMENT ON MATERIALIZED VIEW "<db>"."<schema>"."<view>" IS '...' |
| Function | Function | COMMENT ON FUNCTION "<db>"."<schema>"."<function>"(<argument types>) IS '...' |
| Column of a table, external table, or dynamic table | Column | COMMENT ON COLUMN "<db>"."<schema>"."<table>"."<column>" IS '...' |
| Column of an Iceberg table | Column | ALTER ICEBERG TABLE "<db>"."<schema>"."<table>" ALTER COLUMN "<column>" COMMENT '...' |
| Column of a view or materialized view | Column | ALTER VIEW "<db>"."<schema>"."<view>" ALTER COLUMN "<column>" COMMENT '...' |
The Sync scope asset type is the value to select in an Asset type row of the sync scope. Atlan doesn't push descriptions for any other asset type, for example procedures, stages, streams, and pipes.
Statement behavior
- Each statement sets the comment to the description of the asset at the time Atlan applies the edit. If you edit a description several times in a short time, Snowflake gets the latest text.
- A comment on a view column or a materialized view column doesn't change the view definition or its grants. Atlan doesn't recreate the view. Atlan runs no statement for these columns while Sync view column descriptions is off.
- Each statement needs the
OWNERSHIPprivilege on the object. For details, see Grant Snowflake privileges. - Atlan runs each statement with the query tag
atlan-snowflake-description-reverse-sync, including the audit table statements.
Audit table statements
For each connection with edits to apply, Atlan also runs these statements on the audit table, <audit-database>.<audit-schema>.TBL_ATLAN_REVERSE_SYNC_AUDIT:
| Step | Statement | When |
|---|---|---|
| Check | INSERT INTO <audit table> (guid, ERROR_MESSAGE) SELECT NULL::STRING, NULL::STRING WHERE FALSE | Before the first comment. The insert writes no row. If the table has no ERROR_MESSAGE column, Atlan runs the check again without it. |
| Create | CREATE TABLE IF NOT EXISTS <audit table> (...) | Only when the check reports that the table doesn't exist. Atlan then runs the check again. |
| Write | INSERT INTO <audit table> (guid, fullname, ...) VALUES (...) | After the comments, with one row for each statement that Atlan ran. |
Atlan doesn't run ALTER TABLE or DROP TABLE on the audit table.
See also
- Push description updates to Snowflake: Enable description reverse sync for a connection
- Description reverse sync FAQ: What doesn't propagate, timing, and why a description doesn't reach Snowflake