Automated Data Quality Checks
Block bad table builds with SQL checks on keys, nulls, and bounds.
Run SQL assertions for uniqueness, non-null fields, row counts, and value ranges before any table promotes live. Failing checks keep the prior verified version serving.
What Automated Data Quality Checks does
Data quality checks turn manual spot-checks into automatic release gates on every pipeline run. Recipes declare SQL invariants for grain, null keys, date monotonicity, enums, and numeric ranges.
When upstream APIs break or return duplicates, failing checks block promotion. The prior live version stays intact and serves via SQL, REST API, and MCP.
Input & output example
Failed checks block promotion so broken runs never overwrite live data.
Candidate run checks
check_unique_pk: count(*) = count(distinct station_id, date) check_temp_bounds: min(temp_c) >= -90 AND max(temp_c) <= 60
Verified live promotion
| check_id | status | observed |
|---|---|---|
| unique_pk | passed | 0 duplicates |
| temp_bounds | passed | -18.2 to 39.4 °C |
How it works
- 1
Declare SQL assertions in doc.checks
Write invariants for primary-key uniqueness, non-null requirements, row floors, and value bounds.
- 2
Evaluate each candidate build
Every run executes checks against the new table and writes a pass/fail ledger.
- 3
Gate promotion to protect live data
Only passing builds promote; failures surface diagnostics without breaking downstream consumers.
Try with an agent
Pre-loads Data Quality Checks in chatAdd strict primary-key and freshness checks
Build a daily FX table with quality checks asserting non-null rates, positive spreads, and zero duplicate currency-date keys.
Common use cases
- Enforcing primary-key uniqueness on every refresh
- Catching upstream outages that return zero rows
- Validating numeric bounds like 0-100% or positive prices
Details
- Category
- Transform & Delivery
- Identifier
- data-quality-checks
- Inputs
- Materialized table candidate
- Outputs
- Pass/fail check ledger · Gated promotion
- Dataset delivery
- Parquet · CSV · JSON · SQL · REST API · MCP
Frequently asked questions
What happens when a check fails on a scheduled refresh?
The failing run does not promote; the previously verified live table version keeps serving cleanly.
Can readers inspect which quality checks passed on a dataset?
Yes. Check ledgers and pass status appear cleanly in dataset run summaries and overview facts.
Do quality checks run on every scheduled refresh?
Yes. Every scheduled or manual refresh executes the full check suite before promoting a new table version.