[Bug] Restore v1.7 behavior for --defer
+ --favor-state
when selecting interdependent resources
#10107
Closed
2 tasks done
Labels
backport 1.8.latest
bug
Something isn't working
pre-regression
Regression not yet in a stable release
Is this a new bug in dbt-core?
Current Behavior
Given:
After the recent refactors to deferral,
dbt run --select model_b model_c --favor-state
would yield compiled code such that:Expected Behavior
In v1.7 and previous versions, because
model_b
is also selected in the current run (even though we are using--favor-state
overall), the compiled code formodel_c
should use the prod target formodel_a
(regardless of whether it exists in the dev schema) but always the dev target formodel_b
:Steps To Reproduce
model_a
,model_b
,model_c
as showndbt run --target prod
mv target/manifest.json state/
dbt run --select model_b model_c --favor-state
Relevant log output
No response
Environment
Which database adapter are you using with dbt?
No response
Additional Context
This has not been reported by any users/customers, I just realized it while writing this comment:
The text was updated successfully, but these errors were encountered: