-
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
[CT-2850] [Feature] Raise a warning when --state
path == --target-path
#8160
Comments
dbt clone
when source = destinationdbt clone
when source = destination
From refinement:
|
Lots of places we could try to catch this. The most obvious to me (but it's Jinja) is inside the dbt-core/core/dbt/include/global_project/macros/materializations/models/clone/clone.sql Lines 34 to 37 in 8350dfe
|
dbt clone
when source = destination--state
path == --target-path
I retitled the issue based on further conversation in: I think we want a warning in the more general case where Separately, I do think we want create or replace table my_db.my_schema.my_table clone my_db.my_schema.my_table;
create or replace view my_db.my_schema.my_table as select * from my_db.my_schema.my_table; Acceptance criteria:
|
Is this your first time submitting a feature request?
Describe the feature
Mentioned by @aranke here and here:
This happens because
from @jtcohen6 in #7790 (comment).
Describe alternatives you've considered
Simple solution that will work:
Who will this benefit?
Anyone using state in any form (including deferral, clone) reusing the same artifact directory.
Are you interested in contributing this feature?
Yes
Anything else?
There are 3 possible solutions here, from easiest to hardest:
The text was updated successfully, but these errors were encountered: