-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Make pg/redshift database verification case-insensitive #1800
Comments
Thanks for the report @rpammeraal! Please feel free to submit a pull request for this change -- it's a very good one :) We've recently added a CLA to the dbt contribution process. This CLA ensures that contributions to the dbt codebase are "original work that does not violate any third-party license agreement." As such, we're not well-suited to copy/paste code into patches to the dbt-core repository. If you're able to submit a PR for this, I'd be very happy to merge it! If not, we can retitle this issue to "Make Postgres database comparisons case-insensitive" and prioritize it on our own accord. Let us know! |
I looked at requirements on how to create a PR -- it is quite a bit of work.
Also, some other changes need to be made in the underlying postgres modules
to ensure that database (and other entity) names are always compared in
lower case in postgres -- however, I don't have the bandwidth to set up,
debug and test all this.
Thanks,
Roy
…On Mon, Oct 7, 2019 at 6:22 PM Drew Banin ***@***.***> wrote:
Thanks for the repot @rpammeraal <https://github.com/rpammeraal>! Please
feel free to submit a pull request for this change -- it's a very good one
:)
We've recently added a CLA
<https://docs.getdbt.com/docs/contributor-license-agreements> to the dbt
contribution process. This CLA ensures that contributions to the dbt
codebase are "original work that does not violate any third-party license
agreement." As such, we're not well-suited to copy/paste code into patches
to the dbt-core repository. If you're able to submit a PR for this, I'd be
very happy to merge it! If not, we can retitle this issue to "Make Postgres
database comparisons case-insensitive" and prioritize it on our own accord.
Let us know!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1800>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGE35HAZ2MSEY2UWCYOVHITQNPOEFANCNFSM4I43HUTQ>
.
|
I don't believe the fix in #1918 fully addresses this issue. While the
Here, my database is named
And a profile configured with:
Followed by:
The first |
…se-database Fix postgres mixedcase database (#1800)
Database names are case sensitive in Postgres (and other databases).
When running DBT I got the following:
ERROR: Cross-db references not allowed in postgres (stg_rammeraal_82136 vs STG_rammeraal_82136)
To avoid this, please apply the following patch:
The text was updated successfully, but these errors were encountered: