Lesson · 8 pages · about 7 min
Data quality checks
A pipeline can succeed and still load bad rows. Test the data before publishing it: no missing keys, no repeats, only known values, enough rows, fresh enough. Then decide what a failure does: warn, drop, quarantine or fail.
- What it is
- Data quality checks are tests on the data itself, not the code: is every key there, is none repeated, is every value one you expect, did enough rows arrive, and are they recent.
- What it is for
- An orchestrator only knows that a task ran without an error. A batch with broken rows, or half the rows, “succeeds” and lands in every report.
- Use it when
- On every table people rely on, between loading a batch and publishing it. Tools such as dbt tests and Great Expectations run them for you.
- Not when
- For scratch tables nobody reads: a test with no one to act on its result is noise.
Words you’ll learn
- Data pipeline
- Airflow
- Row
- Orchestrator
- not_null
- accepted_values
- dbt
- Great Expectations
- Quarantine
- Task state