A Data Quality Framework is a structured system for defining, measuring, and enforcing standards for data accuracy, completeness, consistency, and freshness. In a data lakehouse, data quality frameworks are essential because the lakehouse aggregates data from dozens of source systems with different quality characteristics, and downstream analytics and AI models are only as reliable as the data they consume.
The Five Dimensions of Data Quality
- Accuracy: Values match the real-world entities they represent (no incorrect prices, wrong names, or bad measurements).
- Completeness: Required fields are not null, and all expected records are present (no missing orders, dropped events).
- Consistency: Values are consistent across systems and tables (a customer's ID in the orders table matches the customers table).
- Timeliness/Freshness: Data is current relative to its expected update cadence (daily sales data is not 3 days old).
- Uniqueness: No unexpected duplicate records (each order_id appears exactly once).
Data Quality Tools for Iceberg
The most widely adopted data quality tool in the Iceberg lakehouse ecosystem is Great Expectations, an open-source Python library that allows data engineers to define "expectations" (e.g., "column revenue must be non-null and greater than 0") and run them as automated tests against Iceberg tables. When an expectation fails, the pipeline can halt and alert data engineers before bad data propagates downstream.
dbt's built-in tests (not-null, unique, accepted-values, relationships) provide a second layer of quality validation for data models built on top of raw Iceberg tables. Monte Carlo, Anomalo, and Bigeye offer ML-driven anomaly detection approaches that learn expected patterns and alert when statistical properties of data distributions shift unexpectedly.
Iceberg and Quality Recovery
Apache Iceberg's time travel capability is a critical data quality recovery mechanism. When a data quality issue is detected after a bad write is committed, the table can be rolled back to the last known-good snapshot using a single ROLLBACK TO SNAPSHOT command, undoing the bad data without affecting the historical record. This makes Iceberg an exceptionally safe platform for operating data quality processes.

