dbt_constraints icon indicating copy to clipboard operation
dbt_constraints copied to clipboard

Exclusion of a data catalog, database, or directory from a dbt_constraint build

Open dontpanicmorty opened this issue 1 year ago • 0 comments

Description

The Please Note section of the dbt_constraints README.md explains that "When you add this package, dbt will automatically begin to create ... not null constraints for not_null tests." The Disabling automatic constraint generation subsection details how not null constraints can (only) be disabled for sources.

There is no functionality to disable constraint creation for other upstream model types like snapshots. Currently, my organization's dbt project has not null tests defined for most snapshots. Constraints should be created for production data through development with the option to enable and disable creating constraints for raw/source and snapshot data.

dontpanicmorty avatar Nov 03 '23 15:11 dontpanicmorty