1. dbt Labs Official Documentation
unique test: "This test validates that there are no duplicate values in a column. It is configured on a model's column."
Source: dbt Labs Documentation
Reference
Generic tests
unique.
2. PostgreSQL 16 Official Documentation
Unique Constraints: "Unique constraints ensure that the data contained in a column or a group of columns is unique among all the rows in the table. ... For the purpose of a unique constraint
null values are not considered equal."
Source: PostgreSQL 16 Documentation
Chapter 5. Data Definition
Section 5.4.5. Unique Constraints.
3. Snowflake Official Documentation
Constraints: "UNIQUE: Specifies that the column can contain only unique values. Note that unlike primary keys
unique keys allow NULL values. A unique constraint allows for any number of NULL values in the column."
Source: Snowflake Documentation
SQL Reference
DDL (Data Definition Language)
CREATE | ALTER TABLE ... CONSTRAINT.