-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Investigate DbtDatabaseSQLCompilationError exceptions in Snowflake #16668
Comments
Apparently snowflake doesn't support ALTER TABLE statements that change column data types to different types - https://docs.snowflake.com/en/sql-reference/sql/alter-table-column.html The workaround is apparently to do an |
Why would DBT need to alter table given that we don't support changing field types in schema evolution yet? |
if you refresh schema but don't reset destination tables, then normalization will attempt to propagate column type changes to the destination (e.g. if the column was previously |
For now, we will prioritize dropping SCD tables that will allow customers to have a workaround. Once we are working on schema evolution, we will address the ALTER TABLE case |
Now that normalization deletes _scd tables, these errors should be gone after a reset. |
Several connections started throwing
DbtDatabaseSQLCompilationError
in Snowflake exceptions and this looks like a pattern. The common thread between these errors iscannot change column X from type A to B
. Here are examples:Related support tickets: 587, 581, 580, 574
The text was updated successfully, but these errors were encountered: