-
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-1040] [Bug] Selectors fail on dbt deps
#5655
Comments
dbt deps
dbt deps
Interestingly, I've thrown a breakpoint() at the offending line. When running |
cc'ing @gshank |
@danieldiamond This is indeed because |
Thanks for the prompt reply @jtcohen6. What's the best way to proceed? Are we able to disable reading selector definitions at these moments? Should I rather add a default value in the jinja as a redundant fallback? |
I think this would give you the quickest resolution, yep. Given that node selection is not relevant for |
Proposed resolution: Do not parse |
hey @jtcohen6 sorry I should've followed up, I went with
as a workaround for now. but I agree that we should not parse selectors.yml for deps or clean tasks. if you point me in the right direction I'd be more than happy to create a PR with the necessary changes |
Check ff it's an Additionally, there seems to be some dead code in selector config object. |
Is this a new bug in dbt-core?
Current Behavior
dbt deps
fails when a selector using inheritance is implemented. Error occurring at this line.The definition is
i.e. the value is not being read for the selector method.
I believe it is because
default: "{{ target.type == 'snowflake' | as_bool }}"
yaml is not being read at time ofdbt deps
Expected Behavior
selectors should be
Steps To Reproduce
dbt deps
Relevant log output
Which database adapter are you using with dbt?
snowflake
Additional Context
#4827
The text was updated successfully, but these errors were encountered: