-
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
When dbt finds existing approximate matches via adapter.get_relation()
use the same quoting when printing error message
#4187
Comments
@swanderz Thanks for the report! This certainly brings me back to an early day of dbt, when quoting, casing, and caching were all the rage. I haven't been able to reproduce this on other adapters, as much as I mess with quoting, casing, aliasing, etc. Would you be able to create a simple reproduction case that manages to produce this error on the adapter? I'd be curious to step line by line through the The dbt-core/core/dbt/adapters/base/relation.py Lines 32 to 33 in 719b202
How does it know which relations it has created? Based on the relations returned by each materialization: Lines 276 to 277 in 719b202
(I took a quick glance, and it seems that I believe this is a different error from #3835. In that case, we want to raise the
Given what I said about the |
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 remove the stale label or comment on the issue, or it will be closed in 7 days. |
Although we are closing this issue as stale, it's not gone forever. Issues can be reopened if there is renewed community interest; add a comment to notify the maintainers. |
I believe we are experiencing this issue with the Netezza adapter, which has an After debugging we’ve found that When we dove into the Steps to reproduce
> relation.dbt_created
True
> [cache_relation for cache_relation in self.cache.get_relations(relation.database, relation.schema) if cache_relation.identifier == relation.identifier.lower()][0].dbt_created
False |
Is there an existing feature request for this?
Describe the Feature
A user reported this issue to me (https://github.com/firebolt-analytics/dbt-firebolt/issues/62 private repo). But their error message is copied below and it looks as if there are two models: one that is quoted (
"oz_account"
) and one that isn't (oz_account
). In reality, I think there is a namespace overlap? What's driving me crazy is that 4/5 of current users are not having this quoting issue, and one user is having this issue. So I don't understand how this can happen when the adapter code is the same...My suggestion would be to make them both be quoted so users don't think there's a quoting issue going on, but rather should know that it is indeed a problem with the model name already being used.
Describe alternatives you've considered
Unless this user is experiencing #3835. I'm going to have the user try the fix proposed in #4076 and see if that fixes their problem. If so, we know what's going on.
If #4076 does not fix the user's issue, it seems I have to deep dive more into
adapter.get_relation()
to see what's going onWho will this benefit?
users of dbt-firebolt!
Are you interested in contributing this feature?
Anything else?
The text was updated successfully, but these errors were encountered: