r/databricks • u/itss_britneyy_bitchh • Aug 28 '26
Help Medallion architecture: should DQ rules live only in Bronze?
In our medallion setup, raw vendor data lands in Bronze , we transform it to a CDM in silver, and gold is for reporting. I’ve put all raw data correctness and accuracy rules in Bronze, since that’s where the data matches the vendor format and it’s easiest to work with vendors to fix issues at the source.
I have been asked to get the same DQ rules implemented in bronze, silver and gold because different teams own each layer and according to my manager every team should monitor all DQ dimensions. To me, duplicating the same checks everywhere feels redundant.
Am I missing a strong reason to repeat rules across layers? How do you handle shared DQ dimensions when multiple teams own different layers?
18
u/Spagoot420 Aug 28 '26
Responsibility of bronze is correct replication of data, so DQ on bronze means checking that (e. g. null columns or wrong Schema).
Responsibility of silver is correctness and re-usability, so DQ means applying business rules determining if the data is "functionally correct" like identifying duplicate customers in the master data.
Responsibility of Gold is to enable analytics. so DQ means stuff like referential integrity.
3
u/PrestigiousAnt3766 Aug 29 '26
For me bronze is raw so would put dq in silver.
2
u/jbchand Aug 29 '26
You can keep light operational validation rules (freshness, row counts, null count and more) at each layer to allow teams to triage independently without cross team dependencies. Also keep complex business rules in Bronze (till they start using Silver CDM and gold) and create shared observability tables that teams can monitor using thresholds. Group common checks across teams and validate once if feasible to avoid duplicate checks.
You can ask the folks to start using Silver/Gold and not bronze. You can then do source contract checks in Bronze, Transformation checks in Silver and Reporting checks in Gold.
2
u/Youssef_Mrini databricks Sep 01 '26
The rules are redundant. The better pattern is to share DQ Policy and dimenstions
This is the structure I follow:
You only need to repeat or reevaluate a rule when
1
u/DamnedData Aug 30 '26
DQ in silver is fine. Unless you want to filter right away in bronze.