-
Notifications
You must be signed in to change notification settings - Fork 33
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
[Bug] Casing not preserved in seeds #178
Comments
after discussing with @gwenwindflower, I advised that she open the error here because the issue happens on both dbt-snowflake and dbt-redshift the error is dbt-adapters/dbt/adapters/base/relation.py Lines 127 to 129 in 4774638
|
Might be silly, maybe it's not implemented for all adapters, or maybe I'm missing something very obvious, but you can specify quoting seed columns in dbt code.
|
i'd be curious to know if wrapping the below dbt-adapters/dbt/include/global_project/macros/materializations/seeds/helpers.sql Lines 108 to 110 in 1edeb74
|
Is this a new bug?
Current Behavior
dbt appears to successfully create new seeds from case sensitive file names
e.g. mySeed
but then errors with an 'approximate match' error later on because the seed created actually follows the default casing of the warehouse (lower on Redshift, UPPER on Snowflake, etc). Having a cased seed in your project essentially results in an unclear error if you're using an adapter that defaults to casing one way or the other.Expected Behavior
I would expect one of two things:
Steps To Reproduce
dbt seed
.dbt seed
again or dbt build, anything that would involve referencing that seed.Relevant log output
Environment
Additional Context
No response
The text was updated successfully, but these errors were encountered: