-
Notifications
You must be signed in to change notification settings - Fork 48
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
[CT-2178] Handling column names having /
while altering the table
#63
Comments
Linking:
|
Have raised a Pull Request for the issue - Update columns.sql dbt-labs/dbt-core#7025 |
This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please comment on the issue or else it will be closed in 7 days. |
I hope this was accepted as a valid issue, so is this PR completed? How do I track? If yes, then please provide me the link to verify the same else please let me know the next step. |
/
while altering the table
/
while altering the table /
while altering the table
This was reported multiple times and covering a plurality of adapters:
Acceptance criteriaImplementation detail was originally described here: dbt-labs/dbt-core#7025 (comment) In short:
More detailAfter doing a
Since the 3rd one is related to snapshots, ideally there would be at least one snapshot-specific functional test that needs a quoted identifier to handle a special character or reserved keyword. |
This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please comment on the issue or else it will be closed in 7 days. |
Its been too long I have opened this issue, now I don't even remember where to track back. Now I am not clear on all the comments, so please let me know if this can be published or not ? And what should be my next step towards this? TIA. |
…ackup & dist/sort (#63) * set BACKUP parameter before dist/sort keys * updated changelog * added test v1 * Finalize backup tests * update tests
Is this a new bug in dbt-snowflake?
Current Behavior
We had few columns with "/" in the column names. During incremental runs, when dbt runs the alter statement to either add or drop a column it is failing with the below error in the global macro columns.sql
ERROR_MESSAGE
SQL compilation error:
syntax error line 3 at position 12 unexpected '/'.
image
Fix
Modified global macro to add proper quoting to the column names during alter table statement.
Expected Behavior
We expect that the alter statements to add or drop columns, must run successfully without any failure. Basically if we have added a column in the previous layer(say load layer), and during incremental load in the next layer(raw layer) it should run the alter statement and add the column to the raw table. Please note it failed because it has a character "/" in the column name.
Steps To Reproduce
Relevant log output
Environment
Additional Context
No response
The text was updated successfully, but these errors were encountered: