Overview of available dbt-expectations tests
mainThe dbt-expectations package provides a wide range of tests categorized by the type of validation they perform:
Table shape
Tests for column existence, row recency, table aggregation comparisons, column counts, and row counts.
Missing values, unique values, and types
Tests for nullity, uniqueness, data types, and casing consistency.
Sets and ranges
Tests for value membership in sets, range boundaries, and monotonic trends (increasing/decreasing).
String matching
Tests for string length and pattern matching using regex or LIKE patterns.
Aggregate functions
Tests based on statistical aggregates like distinct counts, max, mean, median, min, stdev, sum, and quantiles.
Multi-column
Tests involving relationships between multiple columns, such as pair comparisons, compound uniqueness, or sums across columns.
Distributional functions
Tests for statistical distributions, such as values within N standard deviations or data density over date parts.