How calogica/dbt-expectations works
dbt-expectations is a dbt package that lets data teams declare Great Expectations-style data quality tests and execute them in their warehouse through dbt. The main workflow is a dbt user configuring a test, dbt running the package’s SQL test macros, and the warehouse evaluating the resulting checks. The README documents broad test families and supported warehouses, but no source excerpts were supplied, so internal macro calls and helper relationships are not asserted.
Main entry points: table_shape Table shape tests · column_values_basic Basic value tests · string_matching String matching · aggregate_functions Aggregate tests
Components 13
Test workflow
- dbt runtime
Table shape
- Table shape tests
macros/schema_tests/table_shape
Column values
- Basic value tests
macros/schema_tests/column_values_basic - String matching
macros/schema_tests/string_matching
Analytical checks
- Aggregate tests
macros/schema_tests/aggregate_functions - Multi-column tests
macros/schema_tests/multi-column - Distributional tests
macros/schema_tests/distributional
SQL helpers
- Generalized expressions
macros/schema_tests/_generalized - Math macros
macros/math - Regex macro
macros/regex - SQL utilities
macros/utils
Other components
- dbt user
- Data warehouse
Connections 8
- dbt user → dbt runtime: configures tests
README.md - dbt runtime → Table shape tests: runs tests
README.md - dbt runtime → Basic value tests: runs tests
README.md - dbt runtime → String matching: runs tests
README.md - dbt runtime → Aggregate tests: runs tests
README.md - dbt runtime → Multi-column tests: runs tests
README.md - dbt runtime → Distributional tests: runs tests
README.md - dbt runtime → Data warehouse: executes checks
README.md