An Apache Spark-based analytics platform optimized for Azure.
A Data Quality control should be managed as a governed business control linked to its Unity Catalog asset—not merely as validation code—with its definition, owner, lineage, threshold, response policy, results, and remediation workflow maintained together.
Recommended control record
For every critical data element (CDE) or KPI, document the following:
| Area | Information to capture |
|---|---|
| Identity | Unique control ID, meaningful control name, status, version, effective date, and review frequency. |
| Business context | Approved business definition, purpose, associated KPI/CDE, business domain, glossary term, calculation formula, intended use, and known exclusions. |
| Accountability | Business data owner, data steward, technical owner, pipeline owner, and escalation contact or team. In a federated model, central governance defines standards while domain owners and stewards apply them locally.^1^ |
| Data scope | Unity Catalog catalog, schema, table/view, columns, source system, authoritative source, transformation layer, and downstream products or reports. |
| Lineage | Source-to-target path, transformations, upstream dependencies, and downstream consumers. Unity Catalog captures runtime lineage down to column level across queries, notebooks, jobs, and dashboards.^2^ |
| Quality rule | Quality dimension—such as completeness, validity, accuracy, consistency, uniqueness, or timeliness—plus the executable Boolean condition and evaluation grain. |
| Threshold and SLA | Pass threshold, warning threshold, freshness SLA, evaluation frequency, acceptable exception rate, and the business justification for each value. Databricks specifically recommends documenting thresholds and escalation procedures.^3^ |
| Failure treatment | Whether invalid data is retained with a warning, dropped, quarantined, or causes the update to fail; also record whether downstream publication should be blocked. |
| Remediation | Responsible team, triage SLA, issue-management queue, investigation steps, correction method, reprocessing procedure, escalation path, and closure evidence. |
| Evidence | Last execution, records tested/passed/failed, score, trend, incident reference, exception approval, and last review date. |
Store searchable asset context—especially purpose, source, accuracy, relevance, sensitivity, and compliance information—in Unity Catalog comments and governed tags. Comments describe tables and columns; tags classify and organize securable objects.^2^
Avoid placing confidential information in tags or comments because they are metadata intended for discovery and governance.
Practical Azure Databricks implementation
- Register the governed asset in Unity Catalog.
Organize catalogs around business domains where practical, and use schemas for data products or lifecycle layers. A hybrid model—central standards with domain-level execution—is recommended for most enterprises.^2^ - Attach the business context.
In Catalog Explorer, add reviewed table and column comments, ownership, and governed tags such ascritical_data_element,quality_tier, orbusiness_domain. Unity Catalog provides access control, governed tags, discovery, lineage, classification, quality monitoring, and auditing as connected governance capabilities.^4^ - Implement the rule near the transformation.
Lakeflow expectations evaluate SQL Boolean conditions for each record and support three explicit outcomes: warn, drop, or fail.^5^
CREATE OR REFRESH STREAMING TABLE sales.gold_daily_kpi (
CONSTRAINT dq_order_id_required
EXPECT (order_id IS NOT NULL) ON VIOLATION FAIL UPDATE,
CONSTRAINT dq_non_negative_revenue
EXPECT (net_revenue >= 0) ON VIOLATION DROP ROW
)
AS
SELECT order_id, order_date, net_revenue
FROM STREAM(sales.silver_orders);
Use warn when visibility is sufficient, drop/quarantine when bad rows must not propagate, and fail when any violation makes the publication unacceptable. Quarantine is preferable to silent deletion when records require investigation or correction.^6^
- Monitor both deterministic rules and broader health.
Review expectation results at Jobs & Pipelines → pipeline name → dataset → Data quality. Passed, failed, and dropped counts are also available in the pipeline event log.^7^
Enable Unity Catalog data quality monitoring for freshness, completeness, profiling, drift, and custom metrics. Monitoring observes tables but does not modify them.^8^ - Operate a closed-loop remediation process.
A failed control should create an assigned action, preserve affected records where investigation is required, trace the issue upstream through lineage, correct the source or transformation, reprocess, and retain closure evidence. Do not close an incident solely because a later run passed; record the cause, affected period, correction, and prevention action.
Important platform note
For new governance architecture, center the implementation on Unity Catalog and current Microsoft Fabric governance direction. Microsoft Purview Unified Catalog and classic Purview data-governance capabilities are being retired; new accounts can no longer be created, and existing capabilities remain in maintenance mode through November 12, 2027.^1^
References