taylor
03/09/2023, 10:14 PMaaronsteers
03/09/2023, 11:40 PMSnowflake suppports four types of constraints:,unique,not nullandprimary key.foreign key
It is important to note that only the(and thenot nullproperty ofnot null) are actually checked today. There rest of the constraints are purely metadata, not verified when inserting data.primary key
Currently, Snowflake doesn't support the🙂syntax and dbt will skip thecheckconfig and raise a warning message if it is set on some models in the dbt project.check
aaronsteers
03/09/2023, 11:41 PMRedshift currently only enforcesconstraints; all other constraints are metadata only. Additionally, Redshift does not allow column checks at the time of table creation. See more in the Redshift documentation here.not null
aaronsteers
03/09/2023, 11:41 PMBigQuery allows definingconstraints. However, it does not support or enforce the definition of unenforced constraints, such asnot null.primary key
aaronsteers
03/09/2023, 11:43 PMaaronsteers
03/09/2023, 11:45 PM