Data Quality: Dimensions, Ownership, and Response

Learn the main data quality dimensions, how teams assign rule ownership, and how to respond when a check fails or an anomaly needs review.

published: reading time: 9 min read author: Geek Workbench updated: November 12, 2026
Quick Summary

Data quality work defines which properties matter for a dataset, who owns each rule, and what the team does when a check fails. Completeness, validity, consistency, uniqueness, timeliness, and accuracy describe different kinds of risk; the response can range from alerting an owner to quarantining records or stopping a release. Implementation details for schema and validation checks belong in the companion Data Validation guide.

Data Quality: Validation, Monitoring, and Governance

Consider a dashboard showing an unexpected revenue drop after a pipeline change. The team first checks whether the source data, transformation, or freshness changed before treating it as a business trend. Data quality is the practice of defining those checks and responding when their results put a dataset at risk.

Data Quality Flow Through Pipeline Stages

Quality work begins with the properties a consumer depends on. Implementation details for checks at source, transform, and consumer stages are in Data Validation. This article focuses on what the team measures and who responds.

flowchart TD
    subgraph Extraction[Extraction Stage]
        E1[Source data ingestion]
        E2[Schema validation]
        E3[Type checks]
    end
    subgraph Staging[Staging Stage]
        S1[Row count validation]
        S2[Null rate checks]
        S3[Unique key validation]
    end
    subgraph Transform[Transformation Stage]
        T1[Business logic rules]
        T2[Cross-table consistency]
        T3[Anomaly detection]
    end
    subgraph Load[Load Stage]
        L1[Referential integrity]
        L2[Constraint validation]
        L3[Freshness check]
    end
    E1 --> E2 --> E3 --> S1 --> S2 --> S3 --> T1 --> T2 --> T3 --> L1 --> L2 --> L3

Catching issues early (extraction/staging) is cheaper than catching them late (load stage). An issue caught at extraction can be re-extracted. An issue caught at load requires a backfill.

What Makes Data “Bad”

Data quality issues fall into several categories:

Completeness: Required fields are null or missing. A customer record without an email address is incomplete. A fact table row without a foreign key to the date dimension is broken.

Validity: Data is present but wrong. A date of “February 30th”. An email address that is not an email address. A percentage field with values over 100.

Consistency: The same entity has different values across systems. Customer name is “Alice Sharma” in the CRM and “Alice S.” in the billing system. These should be joined as the same customer but appear as different.

Uniqueness: Duplicate records where duplicates should not exist. The same order appearing twice because a pipeline ran twice.

Timeliness: Data arrives late. A daily pipeline that usually runs at 2am has been running at 6am for three days because of a upstream issue. Reports that assume 2am data are stale.

Accuracy: Data does not reflect reality. A sensor reading of 999 degrees when the actual temperature was 73. A zip code that does not exist.

Rule Ownership and Severity

A rule needs an owner, a reason, a review date, and an agreed response. The data owner defines what counts as acceptable for the intended use; the pipeline owner implements and monitors the check; the on-call or steward handles the resulting alert or quarantine. Assign severity from impact, not from the fact that a check failed.

Example signal Classification Typical response
Required order_id is missing or duplicated beyond the dataset’s stated tolerance Failed invariant Stop the affected load or quarantine the affected records; notify the pipeline owner and dataset steward
Average order value shifts from its usual range while required fields and totals remain valid Anomaly alert Notify the analyst or data owner to investigate; continue only if the dataset’s use and severity policy allow it

Not every check should block a pipeline. A hard integrity rule may stop delivery; a distribution change can be an alert that needs investigation. Record the decision, impact, and follow-up so the same signal does not trigger an unowned alert next time. For code and framework-specific validation patterns, see Data Validation.

Producer Agreements

A data contract records what a producer promises to deliver and what its consumers rely on, including schema, quality expectations, ownership, and freshness. It helps teams agree on a change before it appears as a failed quality check. See Data Contracts for contract lifecycle and compatibility examples.

Anomaly Detection

Rule-based validation catches known failure modes. Anomaly detection catches unknown ones. Monitor statistical properties of your data and alert when something deviates significantly from baseline.

-- Simple anomaly detection: monitor distribution changes
SELECT
    date,
    AVG(order_total) AS avg_order_total,
    STDDEV(order_total) AS stddev_order_total,
    PERCENTILE_CONT(0.99) WITHIN GROUP (ORDER BY order_total) AS p99_order_total,
    COUNT(*) AS order_count
FROM fact_orders
WHERE date >= CURRENT_DATE - INTERVAL '30 days'
GROUP BY date
ORDER BY date;

-- Alert if today's stddev is 3x the 30-day average
-- This catches distribution shifts even when individual values are valid

More complex anomaly methods can help with established baselines, but an alert still needs context and an owner. A statistical deviation is a signal to investigate, not proof that records are invalid.

Data Quality Monitoring

Build quality metrics dashboards. Track these over time:

  • Null rate per column per table
  • Duplicate rate per primary key
  • Row count vs historical average
  • Freshness: time since last successful load
  • Validation failure rate per rule
# Example: Data quality metrics for Prometheus/Grafana
metrics:
  - name: pipeline_data_quality_null_rate
    query: |
      SELECT
        table_name,
        column_name,
        SUM(CASE WHEN value IS NULL THEN 1 ELSE 0 END) / COUNT(*) AS null_rate
      FROM column_stats
      GROUP BY table_name, column_name
    thresholds:
      warning: 0.01
      critical: 0.05

  - name: pipeline_freshness_minutes
    query: |
      SELECT
        table_name,
        EXTRACT(EPOCH FROM (now() - last_loaded_at)) / 60 AS minutes_since_load
      FROM pipeline_status
    thresholds:
      warning: 30
      critical: 60

For pipeline-level monitoring patterns, see Pipeline Orchestration.

Governance and Ownership

Data quality needs both operational ownership and technical checks. Someone must be accountable for the dataset and able to make decisions about its intended use.

Dataset owner: Defines intended use, priority, and acceptable quality thresholds.

Rule implementer: Maintains the check, its monitoring, and evidence that it ran.

Incident responder: Triage alerts, controls delivery or quarantine when needed, and coordinates correction and communication. The same person may hold more than one role on a small team, but each responsibility should be assigned.

When to Use Data Quality Checks

Use data quality checks when:

  • Pipelines process data that drives business decisions (revenue, metrics, reports)
  • Source data comes from external systems with unreliable schemas
  • A dataset is used for decisions where missed errors or delays have a defined impact
  • Multiple teams produce data that other teams consume (data mesh contexts)

Do not use comprehensive data quality checks when:

  • Prototyping or exploring data — overhead slows down initial iteration
  • A one-off migration — choose checks proportional to the migration risk and data criticality
  • A check duplicates an upstream control and adds no useful evidence; document the existing control and monitor its coverage

Production Failure Scenarios

Data quality failures in production tend to follow predictable patterns:

Failure Mode Cause Impact Mitigation
Silent aggregation corruption Test/dev data loaded into production alongside real data Wrong revenue/metric calculations Separate environment credentials, pipeline-level environment filtering
Stale data served as fresh Pipeline runs late but downstream queries assume freshness Executives see wrong numbers Freshness SLA monitoring with alerts
Schema drift silent failure Source adds column, downstream breaks Dashboard errors, pipeline failures Schema validation at ingestion
Duplicate records inflate metrics Upsert key collision or re-run without cleanup Incorrect aggregate counts Unique key monitoring, idempotent pipeline design
Null values misinterpreted NULL treated as zero or empty string in aggregates Subtle wrong totals Enforce NOT NULL on critical columns

A quality alert without an owner or response policy is not an operational control. Review the signal, assign an action, and track whether consumers were affected.

Trade-off Table: Validation Approaches

Aspect Schema-level Statistical Business logic
Coverage Narrow — types and nulls Medium — distributions Wide — custom rules
Implementation cost Low — native warehouse constraints Medium — query templates High — requires domain knowledge
Maintenance Low — rarely changes Medium — thresholds drift High — business rules evolve
False positive rate Low Medium High
Catches unknown issues No Sometimes No
Best for Early-stage pipelines Mature pipelines with baseline data Critical business metrics

Schema-level validation is table stakes. Statistical validation catches what schema validation misses. Business logic validation is essential for metrics that drive decisions.

Common Pitfalls

Too many tests, not enough coverage: Teams add many individual column tests but miss the business logic errors that span multiple columns.

Validation at the wrong layer: Validation that only happens at load time misses issues that are introduced in transformations. dbt tests run after each transformation model catch issues closer to where they are introduced.

No historical tracking: Without tracking quality metrics over time, you cannot tell if quality is improving or degrading. Build metrics persistence into your pipeline.

Blaming the source: When data quality issues appear, teams often blame the source system. In practice, most quality issues are introduced in the pipeline itself.

Quick Recap

  • Bad data comes in six flavors: completeness, validity, consistency, uniqueness, timeliness, accuracy.
  • Integrate validation into the pipeline, not as a separate post-processing step.
  • Catch issues at extraction or staging when re-extraction is still possible.
  • Data contracts formalize the agreement between producers and consumers.
  • Track quality metrics over time. Without history, you cannot tell if quality is improving.
  • Silent failures — wrong numbers that look plausible — are the most dangerous.

Conclusion

Data quality is not a nice-to-have. Bad data leads to bad decisions, wasted engineering time, and lost trust in data systems. The practices are straightforward: define rules, validate automatically in the pipeline, monitor metrics over time, and have a process for responding to failures.

Choose checks based on impact, and make their owners and response paths visible. A small set of maintained rules is more useful than a large set of checks nobody reviews.

For implementation details, see Data Validation. For producer-consumer agreements, see Data Contracts.

Category

Related Posts

Data Validation: Ensuring Reliability in Data Pipelines

Learn data validation techniques for catching errors early, defining constraints, and building reliable production data pipelines.

#data-engineering #data-quality #data-validation

Data Contracts: Establishing Reliable Data Agreements

Learn how to implement data contracts between data producers and consumers to ensure quality, availability, and accountability.

#data-engineering #data-contracts #data-quality

Data Governance: Practical Implementation Guide

Learn the essential framework for data governance including data ownership, quality standards, policy enforcement, and organizational alignment.

#data-engineering #data-governance #data-quality