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
I have searched the existing issues, and I could not find an existing issue for this bug
Current Behavior
If the source query produces a result set with a column name that includes whitespace, the generated ALTER TABLE...ADD statement fails because the column name is not quoted properly.
Expected Behavior
column name in the ALTER TABLE... ADD/DROP should be quoted properly.
skadyan
changed the title
[Bug] Adding a column with on_schema_change=(append, sync_all_columns) fails when the column name contains whitespace
[Bug] Adding a column with on_schema_change=(append_new_columns, sync_all_columns) fails when the column name contains whitespace
Nov 6, 2024
Is this a new bug in dbt-snowflake?
Current Behavior
If the source query produces a result set with a column name that includes whitespace, the generated ALTER TABLE...ADD statement fails because the column name is not quoted properly.
Expected Behavior
column name in the ALTER TABLE... ADD/DROP should be quoted properly.
Steps To Reproduce
Assume we have the model built already
Now modify the model to have a new column:
It fails with the below syntax error which it should not. Expected behavior is that my model should have added a new column.
Behind the scene it generate below statement which is incorrect.
see log out put for verbose output.
Relevant log output
Environment
Additional Context
No response
The text was updated successfully, but these errors were encountered: