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

Fix quoting on columns for seeds/incremental models (#1847) #1888

Merged
merged 2 commits into from
Nov 5, 2019

Conversation

beckjake
Copy link
Contributor

@beckjake beckjake commented Nov 4, 2019

Fixes #1847

There are a few of fiddly places where this is an issue, expanding column types also hits it. Hopefully this is all of them.

Added tests accordingly.

@cla-bot cla-bot bot added the cla:yes label Nov 4, 2019
Copy link
Contributor

@drewbanin drewbanin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great - ship it when the tests are in good shape.

Note: the change to the seed behavior is probably going to break some projects. On snowflake in particular, a csv with

a b c
1 2 3

Will be created as a table on Snowflake with columns named "a", "b", and "c". This new behavior is more correct and this is shipping for 0.15.0, so I feel ok about that fact. Let's be sure to document the change as a breaking one in the changelog.

Added tests
Also fixed quoting on column expansions
@beckjake beckjake force-pushed the fix/column-quoting branch 2 times, most recently from aa6fda7 to 21ebecd Compare November 5, 2019 17:57
@beckjake
Copy link
Contributor Author

beckjake commented Nov 5, 2019

I had to update a lot of tests to get this passing, but no actual code changes.

@beckjake beckjake merged commit d7eee61 into dev/louisa-may-alcott Nov 5, 2019
@beckjake beckjake deleted the fix/column-quoting branch November 5, 2019 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dbt does not appropriately quote column names for incremental models and seed files.
2 participants