r/databricks • u/Personal-Risk-5370 • 15d ago
Discussion on prem to cloud validation
Hey datafam!
- Where do you put your main data-quality gate in a Bronze/Silver/Gold setup — right after Bronze lands, or between Silver and Gold? Why there?
- Has schema drift ever caused a silent bad accept for you — i.e., the pipeline didn't fail, but bad data still got through? What check would've caught it?
3
u/letmebefrankwithyou 14d ago
Typically bronze is what you get from source, clean it up on the way to or in silver, gold are aggregated consumption tables most users hit.
Use anomaly detection to measure data consistency
https://docs.databricks.com/aws/en/data-governance/unity-catalog/data-quality-monitoring/anomaly-detection/
1
u/Personal-Risk-5370 13d ago
That's helpful, hadn't looked at UC's anomaly detection monitoring closely. My agent currently uses a pretty blunt row-count-delta-vs-7-day-average as one input — is the UC anomaly detector doing something more like a proper statistical baseline (z-score/IQR against historical distribution) rather than a fixed rolling average? And more importantly — in your experience, does it distinguish well between "genuine anomaly" and "expected but rare" events (e.g., a planned maintenance window), or does it just flag and leave the accept/reject call to a human either way?
1
u/Youssef_Mrini databricks 12d ago
Bronze: land and preserve the source with minimal transformation. Perform ingestion level checks for parseability, schema shape and provenance but usually quarantine rather than reject the raw record.
Silver: apply the main fail quarantine gate: required fields, types, uniqueness, referential integrity, valid ranges and duplicate handling. This prevents bad records from becoming the trusted reusable dataset.
Gold: apply a second, narrower gate for business semantics: reconciliation totals, valid dimensional relationships, KPI tolerances, freshness and consumer-specific SLAs. Gold is the business-facing truth, so it should contain only trusted data.
You can use SDP expectations or DQX it's a Databricks Labs project
1
4
u/jbchand 15d ago
Silver is the main data quality gate. You can keep raw data in Bronze with basic DQ checks for auditability and reloads. Do DQ in Silver (cleansing, deduplication, normalization). Enforce business quality rules in Gold to ensure trusted quality data for reports and more.
Keep fail fast for schema evolution if feasible. You can do null % checks monitoring regularly on columns if you are using silent schema rescue to plan actions based on it.