[bug] deferral for unit test when modifying upstream and doing a partial build #10017
Labels
bug
Something isn't working
pre-release
Bug not yet in a stable release
unit tests
Issues related to built-in dbt unit testing functionality
At the same time, I got myself into quite a tricky loop trying to debug an edge case with dbt unit tests, until I realized that this PR should actually fix that edge case:
model_a -> model_b
and a unit test defined onmodel_b
model_a
,model_b
, and the unit test definition, and I buildmodel_a
but notmodel_b
in my dev schema, then the unit test will pass without--defer
and yet fail with--defer
.model_b.raw_code
rather than the updated development version.model_b.defer_relation
, rather than overwriting themodel_b
node entry.Originally posted by @jtcohen6 in #9199 (comment)
The text was updated successfully, but these errors were encountered: