dbt_constraints icon indicating copy to clipboard operation
dbt_constraints copied to clipboard

Deferral seems broken when using dbt 1.7

Open jfmario opened this issue 7 months ago • 4 comments

We are running into an issue when dbt_constraints is creating constraints based on the dbt_utils relationships test.

It does not respect environment deferral when running in dbt 1.8 with state:modified+. It tries to enforce a relationship between a model in the CI schema another model (from earlier in the DAG) which does not exist in the CI schema (it should defer to the one in the target schema).

This only happened when using dbt 1.8. When I reverted to dbt 1.6, everything worked as expected.

jfmario avatar Jul 25 '24 19:07 jfmario