Data Quality and Governance

Great Expectationsquality governanceopen-source framework for writing, running and documenting data tests, with a runnable GX Core example. Collibra Data Qualitypipelinescommercial platform that profiles data and infers quality rules and anomalies. Data Lineagequality governanceData lineage explained: table vs column lineage, how OpenLineage collects it, impact and root-cause analysis,… Data Observabilityquality governanceData observability explained: freshness, volume, schema, distribution and lineage pillars, MAD anomaly… Data Quality Dimensionsquality governanceThe six data quality dimensions (accuracy, completeness, consistency, timeliness, validity, uniqueness), how… Metadata and Data Catalogsquality governanceMetadata and data catalogs: technical vs business metadata, ingestion, lineage, DataHub, Amundsen and Unity…

Reliable analytics and machine learning depend on data that is correct and on clear rules for who owns and may use it. This section covers both: testing data quality in pipelines, and the governance that surrounds it.


1. Overview

Data quality asks whether data is fit for its purpose: complete, accurate, valid, consistent, unique and on time. Data governance asks who is responsible for data and under what rules it may be used: ownership, definitions, access control, privacy, lineage and retention. The two are linked. Quality rules need an owner who decides what "correct" means, and governance policies are only credible if the data they govern can be trusted.

For people learning data engineering, the practical entry point is quality testing: writing checks that stop bad data before it reaches dashboards and models. Governance grows from there as more teams share the same data.

2. How the Pieces Fit Together

Quality and governance around a pipeline Sources Quality checks tests, profiling Trusted tables warehouse / lake Consumers BI, ML, apps Governance layer ownership, catalog and glossary, access policies, lineage, retention applies to every stage

Quality checks sit inside the pipeline as gates between stages: structural checks right after ingestion (schema, nulls, row counts) and business-rule checks after transformation. Governance sits across the pipeline: a catalog records what each table means and who owns it, access policies control who can read sensitive columns, and lineage shows which sources feed which reports so the impact of a failed check is visible.

Tools fall into three groups. Rule-based testing frameworks such as Great Expectations, dbt tests, Soda and Deequ let engineers write explicit checks in code. Data observability and quality platforms, including Collibra Data Quality, profile data and learn expected behaviour to flag anomalies without hand-written rules. Catalogs and governance platforms such as Unity Catalog, Apache Polaris and Collibra's catalog manage metadata, ownership and policies.

3. Choosing an Approach

NeedGood fitWhy
Test pipeline outputs in Python, Spark or SQLGreat ExpectationsLarge expectation library, checkpoints, HTML Data Docs
Test warehouse models you already build with dbtdbt testsNo extra infrastructure; tests live beside models
Spot unknown problems across many tablesObservability / rule-inference tools (e.g. Collibra DQ)Learns baselines, detects drift and anomalies
Control who sees which columns across enginesCatalog-based governance (Unity Catalog, Polaris)One policy enforced by every engine
Prove where a report's numbers came fromLineage (OpenLineage, catalog lineage)Traces columns from source to dashboard

Most organisations combine several: explicit tests for known rules, anomaly detection for unknown ones, and a catalog for ownership and access. Start with a handful of tests on your most important tables and an owner for each; add tooling when the number of tables and teams makes manual tracking impossible.

4. The Six Common Quality Dimensions

Each dimension maps to concrete checks: null-rate thresholds, regex and range rules, reconciliation against source totals, primary-key uniqueness, and freshness checks on the latest timestamp.

Warehouse vs Lake vs Lakehousearchitecturewhere governed data lives Lakehouse CatalogsSectionUnity Catalog, Polaris and Nessie Data PipelinesSectionthe pipelines these checks protect DataSectionsection home