-
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
Issue with snapshots compilation after upgrading to 0.21.0 #4039
Comments
@andrewlee-trouva Thanks for the report! Could I ask you to be a bit more specific about:
Are those declared in |
hey @jtcohen6 sure no problem, They are declared in the config blocks in the snapshot files.
|
@andrewlee-trouva Weird! I just copy-pasted that snapshot code into an otherwise bare local project, and I'm unable to reproduce the same error. I'm running dbt v0.21.0 with python 3.8.9 on macOS Big Sur (M1 via Rosetta). This feels somewhat similar to #3929. It's even a bit eerily reminiscent of config-related bugs we saw on older python versions (<=3.6.3), triggered by some changes v0.19.1 (slack thread), though in #3929 they're using So, this might be a big ask and I understand if you can't get to it right away—is there any chance you could try this with a newer version of python? |
@jtcohen6 Very weird 🤔 , I'll try moving up to |
This seems like #4000. Is there any snapshot configuration in dbt_project.yml or another schema file? |
@gshank Would you expect to see this error if all snapshots define these configs via the in-file @andrewlee-trouva To Gerda's point: Do any snapshots not define those configs via the |
hey @jtcohen6, we don't define anything config wise in a yml, we leave it all in the
|
I've also run into this issue upgrading to I was able to move forward with an upgrade to |
We still haven't been able to recreate this. If somebody could boil this down to a minimal test case that would be a big help. |
Hi @jtcohen6 @gshank Just to update you from our end. We've been working on adding a docker container to our project, and tried to fix this problem at the same time to no avail, a docker image of python 3.9 with [email protected] still has this error. Thanks @WesRoach I will investigate doing that our end, I assume this didn't effect the snapshot themselves? (i.e not overwriting?) |
Hello, I am having the same issue with
The snapshot works for DBT I've removed all "snapshots" and it worked. When I add only one snapshot file that looks like this:
It throws |
Hi, we faced the similar issue after upgrading to 0.21.0 and I tried with 1.0.3 which seems still has the same error. It works ok if we only have config block in the sql file like
But when we add the property file with config:
It goes to the wrong schema (the default_schema) instead of target_schema "snapshots". Any suggestion on how to fix this error? Is that a bit strange to mandatory have config in the property file if we already have config block in the sql file? And I do not know why it changes the schema if we have config in both places. |
Some update about our problem: |
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. |
Describe the bug
I've just upgraded our dbt instance from 0.20 to 0.21, and tried to compile dbt locally to check for any issues. I received the following error:
This occurs despite all my snapshots (we have 8, a combination of timestamp and check_cols strategies) having
strategy
,unique_key
andtarget_schema
all declared in configs.Steps To Reproduce
with a dbt instance at 0.20, with snapshots, using redshift, upgrade dbt-redshift to 0.21 and run
dbt ls
ordbt compile
Expected behavior
dbt will output the above error
Screenshots and log output
System information
Which database are you using dbt with?
The output of
dbt --version
:The operating system you're using:
Mac, Catalina version 10.15.7
The output of
python --version
:Additional context
The text was updated successfully, but these errors were encountered: