dbt-snowflake
dbt-snowflake copied to clipboard
Fix table comment setting in Iceberg tables
resolves https://github.com/dbt-labs/dbt-adapters/issues/770
Problem
Persisting table comments in Iceberg tables fails as comment on ... is ... notation does not work for Iceberg tables.
Solution
- Update
snowflake__alter_relation_commentto setrelation_type = 'iceberg table'when theis_iceberg_formatisTrue. - Change code to use
alter <relation type> ... set comment = ...notation instead ofcomment on ... is ...notation
Checklist
- [x] I have read the contributing guide and understand what's expected of me
- [x] I have run this code in development and it appears to resolve the stated issue
- [x] This PR includes tests, or tests are not required/relevant for this PR
- [x] This PR has no interface changes (e.g. macros, cli, logs, json artifacts, config files, adapter interface, etc) or this PR has already received feedback and approval from Product or DX
Thanks for your pull request, and welcome to our community! We require contributors to sign our Contributor License Agreement and we don't seem to have your signature on file. Check out this article for more information on why we have a CLA.
In order for us to review and merge your code, please submit the Individual Contributor License Agreement form attached above above. If you have questions about the CLA, or if you believe you've received this message in error, please reach out through a comment on this PR.
CLA has not been signed by users: @dlouseiro
Closing in favour of this one in the monorepo