You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3785d4c
Browse filesBrowse the repository at this point in the historyBrowse files
fix(snowflake): use ALTER ICEBERG TABLE to register column comments on Iceberg tables
Snowflake rejects `ALTER TABLE` for Iceberg tables and requires
`ALTER ICEBERG TABLE` instead. `SnowflakeEngineAdapter._create_column_comments`
builds its statement with a hardcoded `TABLE` kind, so registering column
comments on an Iceberg table with a post-creation command emitted
`ALTER TABLE ... ALTER COLUMN ... COMMENT`. The failure is swallowed and
logged as a permissions warning, so the comments were silently dropped.
This path is only taken when the comments can't be inlined into the CTAS
schema definition, i.e. when the column types are not fully known.
`_create_column_comments` now accepts `table_format`, mirroring the
`_create_table` convention, and the base adapter passes it from the two
table creation paths. The Snowflake adapter derives the Iceberg-specific
table kind from it.
Follow-up to #5722. Related: #5721
Signed-off-by: Guillem G <guillem.gimenez@titanos.tv>
0 commit comments