Data Engineering · Module 16
Data quality and observability
- Lessons
- 12
- Free
- 0
- Reading
- ~3 h
Your progress
0 / 12 lessons done
Sign in to trackLessons
- Data quality: what goes wrong and whyMost wrong numbers in a report don’t come from a crashed job. They come from data that loaded cleanly and was wrong anyway, and someone outside the data team finds it days later.
- Validation checks: schema, nulls, ranges and freshnessMost wrong numbers pass every key and label test, because the rows are well formed and only their values or totals are wrong. Knowing which kind of check sees which fault, and where to run it, is what stops a wrong report before finance reads it.
- Data contracts: agreements with data producersMost bad data in a warehouse starts as a reasonable change in someone else’s app. A data contract makes that team agree, before they ship, on what your pipelines depend on.
- Data testing frameworks: Great Expectations and othersdbt tests only see tables dbt builds, after the data is already in the warehouse. Files, staging tables and dataframes need checks too, and the tool and the place you pick decide how early bad data is stopped and what each check costs.
- Data observability: monitoring data, not just jobsJob monitoring tells you a task ran. It can’t tell you the table it wrote is a fifth short. Data monitors watch the tables themselves, so you hear about a gap before the person who reads the report does.
- Anomaly detection on volumes and valuesA volume check is only as good as its idea of a normal day. At an online store, normal changes with the weekday and the sale calendar, so a check built on last month’s average both pages on every sale and sleeps through a lost Sunday. Getting the baseline right is what turns these checks from noise into the alert that stops a wrong number before finance reads it.
- Data lineage: tracing where numbers come fromWhen a number in a report is wrong, the slow part is not the fix. It is finding which of dozens of jobs, in five different tools, changed it, and who else already read it. Lineage turns both questions into a query.
- Freshness and quality targets for dataJob dashboards can show 98% of runs on time while the person who reads the report counts one bad morning in eight. Targets agreed with that reader, and measured where they read, tell a data team how reliable its data really is and what to fix next.
- Data incidents: finding and fixing bad dataWhen a service breaks, rolling back ends the damage. When data breaks, people and systems have already read it, so the work is finding every reader and putting the right number in front of each one.
- Case: Uber’s data quality platformHand-written checks work for dozens of tables and fail at thousands, because no one writes or tunes them all. Uber’s account shows how to make standard checks the default, keep alerts few enough to trust, and measure whether the checks catch what matters.
- Data catalogs and discoveryOnce a warehouse holds thousands of tables, the hard part is no longer computing the number. It is finding the one table that computes it the way finance does, and knowing it is still correct today.
- Design: a quality system for finance reportsEach quality incident tends to get its own fix, and after a year the fixes run in five tools that never talk to each other. A finance report needs more than many checks: it needs every check to change what is published, reach the person who can act, and leave a record. This lesson puts the whole module into one design.
Practise with
No tools or paper guides for this module yet.
Terms this module teaches 50
Open glossaryAbstract syntax tree
A tree of small operations that represents an expression or program, which code can store, inspect and evaluate.
ACCESS_HISTORY (Snowflake)
A Snowflake view that records, for each query, which tables and columns it read and wrote, including which source columns each written column came from.
Alert dependency
A rule that holds back one alert while another alert that explains it is already firing.
Alert routing
The rule that decides who hears about a failure, how urgently and what happens to the pipeline.
Batch check
A validation check on a whole load, such as its row count, total or average, rather than on each row alone.
Business calendar
A table of dates with known unusual activity, such as sales, holidays and partner outages, that checks use to set expectations and to leave those days out of their history.
Check results table
One table where every data quality check writes its verdict for each day, so publishing, alerting and audits read the same record.
Checkpoint (GX)
A Great Expectations object that runs one or more Validation Definitions together and can trigger actions afterwards.
Code owners
A file in a repository that names the people or teams responsible for each path, so they are asked to review changes to it.
Cross-datacenter consistency
Whether two copies of the same dataset, kept in different datacenters, hold the same rows.
Data catalog
A searchable record of every dataset on a data platform, with its meaning, owner, quality status, lineage and who reads it, so people can find the right table and judge whether to trust it.
Data contract
An agreement between the team that produces data and the teams that use it about what the data contains and how changes to it are announced.
Data discovery
Finding the dataset that answers a question and judging whether it can be trusted, usually by searching a data catalog.
Data incident
An event where data that is wrong, late or missing has reached people or systems that use it, so the response must find and correct every reader, not only stop the fault.
data metric function (Snowflake)
A Snowflake function attached to a table that measures one quality signal, such as row count, null count or freshness, on a schedule and records the result.
data monitor
A check that runs on its own schedule, measures one signal of a table, such as rows added per hour, and alerts when the value leaves its expected range.
data observability
Measuring what is inside your tables over time (freshness, volume, schema, distribution and lineage) so you can tell when the data stops looking like it should, even when every job succeeded.
Data producer
The team or system that creates a piece of data and controls its shape, such as an app team that owns a source database.
Data product
A table, report or dashboard with a named reader who acts on it and a named owner who keeps it right.
Data quality
How well data serves the decision someone makes with it: complete, correct and on time enough for that reader’s question.
Data quality dimension
One kind of way data can be wrong, with its own question: completeness, uniqueness, validity, accuracy, consistency or timeliness.
Data quarantine
Holding back data that failed a check, so it doesn’t reach reports, while the rest is published and the data’s owner is told.
Data reconciliation
Comparing data with an independent record of the same events, made by a different process, to find what is missing or different.
Data testing framework
A library that turns declared rules about data into checks, runs them, and returns results a pipeline can act on.
Dataset certification
A badge in a data catalog marking a dataset as meeting an agreed quality bar, ideally checked automatically and suspended while a quality alert is open.
Dataset tier
A label that ranks a dataset by how important it is, so the most important ones get stricter checks and targets by default.
Error budget policy
An agreed rule for what a team does when an error budget is spent, such as pausing changes and putting the work into reliability.
Expectation
In Great Expectations, one rule about data, written as a Python object with its arguments and a severity.
Expectation Suite
A named set of Great Expectations rules that are run together against one batch of data.
Great Expectations (GX)
An open-source Python library for data checks, where rules are Expectation objects grouped into suites and run against a batch of data.
impact analysis
Using lineage to find everything downstream of a dataset or column, either before a change ships or after bad data has landed.
Materiality limit
The largest error a report may carry without a label, set by the report's owner.
Metadata ingestion
Getting facts about datasets into a catalog, either by crawling each system on a schedule (pull) or by having systems send change events as they happen (push).
OpenLineage
An open standard for lineage events: each job run reports the job, the run and the datasets it read and wrote, so tools from different vendors can build one lineage graph.
Pandera
A Python library that declares a schema for a dataframe and checks the dataframe against it inside Python code.
Provisional verdict
A good-or-bad result for a day of data that may still change, because the outside record that confirms it hasn’t arrived yet.
Pushed-down check
A data check that runs as a query in the engine holding the data, so only the resulting metrics travel back.
Range check
A validation check that each value is possible: inside fixed limits, or consistent with other columns in the same row.
Robust z-score
A z-score that uses the median and the median absolute deviation instead of the mean and standard deviation, so a few extreme values barely change it.
root cause analysis
Finding the first change or step that made a result wrong, rather than the place where the wrong result was noticed.
Schema check
A validation check that the columns and their types are the ones the pipeline expects.
Seasonal baseline
The expected value for a day taken from the same point in earlier cycles, such as the same weekday in recent weeks, instead of from an average of all recent days.
Soda Core
A data checking tool whose checks are written in a YAML contract and run as SQL in the data source’s own engine by a command line tool.
Sustain period
How long a check must keep failing before it raises an alert, so short failures that fix themselves don’t page anyone.
table-level lineage
Lineage that records which tables each table is built from, without saying which columns feed which.
Usage metadata
Facts about who reads a dataset and how often, taken from the warehouse’s query history and used to rank search results.
Validation check
A rule data must meet before anyone uses it, written as a query that returns what breaks the rule.
Volume anomaly
A day, hour or load whose row count is far from what is expected for that time, after allowing for normal patterns such as weekdays and sale days.
Volume check
A validation check that the number of rows in a load is within expected bounds.
Write-audit-publish
A pattern that writes new data to a hidden copy, checks it, and makes it visible only if the checks pass.