-
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
[Bug] --exclude
doesn't work when --defer
flag is provided
#4645
Comments
--exclude
doesn't work when --defer
is used--exclude
doesn't work when --defer
flag is provided
Hey @AndrewCanva, thanks for opening this, and sorry for getting back to you late. I looked up the test case and seems like we don't have test coverage of mixing
We probably should exclude those model/s regarding the answer to the questions, but more information is always helpful. Thanks! |
|
Hey @AndrewCanva, I haven't been able to reproduce this one!
And, when I check compiled/run SQL in |
@jtcohen6 ah, I know why it doesn't exclude the model when I run it. it is not related to defer, what I did in a script is
when I remove the double quotes, it works fine
the that's probably because of argparse, I will close this issue if you think it is not a bug. |
Is there an existing issue for this?
Current Behavior
it runs the model in
--exclude
while it has--defer
in the dbt command whether the model is included in--select
or not.Expected Behavior
dbt should exclude the model specified after
--exclude
whether it is included in--select
when--defer
is provided. In other words,--exclude
overrides--select
.Steps To Reproduce
run a project with
dbt run --select state:modified+1 --exclude m --state /tmp/tmp.daf --defer --target tgt
Relevant log output
Environment
What database are you using dbt with?
redshift
Additional Context
No response
The text was updated successfully, but these errors were encountered: