dbt_constraints
dbt_constraints copied to clipboard
Deferral seems broken when using dbt 1.7
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.