Skip to main content
Save my spot

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 assetSync scope asset typeStatement Atlan runs in Snowflake
DatabaseDatabaseCOMMENT ON DATABASE "<db>" IS '...'
SchemaSchemaCOMMENT ON SCHEMA "<db>"."<schema>" IS '...'
Table, external tableTableCOMMENT ON TABLE "<db>"."<schema>"."<table>" IS '...'
Dynamic tableTableCOMMENT ON DYNAMIC TABLE "<db>"."<schema>"."<table>" IS '...'
Iceberg tableTableALTER ICEBERG TABLE "<db>"."<schema>"."<table>" SET COMMENT = '...'
ViewViewCOMMENT ON VIEW "<db>"."<schema>"."<view>" IS '...'
Materialized viewViewCOMMENT ON MATERIALIZED VIEW "<db>"."<schema>"."<view>" IS '...'
FunctionFunctionCOMMENT ON FUNCTION "<db>"."<schema>"."<function>"(<argument types>) IS '...'
Column of a table, external table, or dynamic tableColumnCOMMENT ON COLUMN "<db>"."<schema>"."<table>"."<column>" IS '...'
Column of an Iceberg tableColumnALTER ICEBERG TABLE "<db>"."<schema>"."<table>" ALTER COLUMN "<column>" COMMENT '...'
Column of a view or materialized viewColumnALTER 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 OWNERSHIP privilege 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:

StepStatementWhen
CheckINSERT INTO <audit table> (guid, ERROR_MESSAGE) SELECT NULL::STRING, NULL::STRING WHERE FALSEBefore the first comment. The insert writes no row. If the table has no ERROR_MESSAGE column, Atlan runs the check again without it.
CreateCREATE TABLE IF NOT EXISTS <audit table> (...)Only when the check reports that the table doesn't exist. Atlan then runs the check again.
WriteINSERT 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​