Skip to content
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

Ensure column name is backticked during alter #861

Merged
merged 3 commits into from
Dec 3, 2024

Conversation

benc-db
Copy link
Collaborator

@benc-db benc-db commented Dec 2, 2024

Resolves #859

Description

Ensures that column names are backticked when added via alter. There are probably other places this needs to be done, but it's unclear to me whether we should prioritize user input ('quote' attribute on ColumnInfo) or safety, so only applying change to a single place. Also refactored existing column quoting usages to have logic live in Python to make it more testable.

Checklist

  • I have run this code in development and it appears to resolve the stated issue
  • This PR includes tests, or tests are not required/relevant for this PR
  • I have updated the CHANGELOG.md and added information about my change to the "dbt-databricks next" section.

@benc-db benc-db merged commit 5066e76 into main Dec 3, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enclose column name with backquote when appending a new column
1 participant