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
alter table `db`.`schema`.`table`
add columns (
new_column string
)
At this time, if the column name contains a hyphen, it will fail with the following error:
[INVALID_IDENTIFIER] The unquoted identifier column_name is invalid and must be back quoted as: `column_name`.
It would be helpful if you could either add an option to enclose column names with backticks when executing ALTER TABLE, or modify the SQL for ALTER TABLE itself.
Expected Behavior
When executing alter table statement, column name is backticked.
alter table `db`.`schema`.`table`
add columns (
`new_column` string
)
Is this a new bug in dbt-spark?
Current Behavior
When you define a model like the following and execute dbt run, new columns will be added if there are schema changes.
At this time, if the column name contains a hyphen, it will fail with the following error:
Expected Behavior
When executing alter table statement, column name is backticked.
Steps To Reproduce
dbt-run
and add new columnRelevant log output
Environment
Additional Context
NA
The text was updated successfully, but these errors were encountered: