Versioning of Checks#1044
Conversation
…t fingerprint in result df.
…t fingerprint in result df.
Code reviewFound 2 issues:
dqx/src/databricks/labs/dqx/checks_storage.py Lines 148 to 153 in 92a5d6b
dqx/src/databricks/labs/dqx/checks_storage.py Lines 430 to 441 in 92a5d6b 🤖 Generated with Claude Code - If this code review was useful, please react with 👍. Otherwise, react with 👎. |
Additional code review findings (lower confidence)Found 4 additional issues (scored below primary threshold):
dqx/src/databricks/labs/dqx/checks_storage.py Lines 356 to 378 in 92a5d6b
dqx/src/databricks/labs/dqx/checks_serializer.py Lines 387 to 395 in 92a5d6b
dqx/src/databricks/labs/dqx/config.py Lines 287 to 301 in 92a5d6b
dqx/src/databricks/labs/dqx/checks_storage.py Lines 147 to 158 in 92a5d6b 🤖 Generated with Claude Code - If this code review was useful, please react with 👍. Otherwise, react with 👎. |
…spark.catalog.tableExists fails for tables with special characters
… a rule_set_fingerprint in lakebase storage
…config.mode=overwrite for lakebase storage
…nt columns exists in delta table
Hi, @mwojtyczka! From what I've reviewed, I think everything is ok. Just one thing to mention... I think we need an extra indentation on lines 148 and 149 of the checks_storage.py file, to match the one in the variable rule_set_fingerprint = result[0][0]. |
This is needed for the case where |
|
This breaks pipelines that have user defined schemas |
|
Yes, this adds two new fields to the DQ result struct schema (the inner type of _errors / _warnings array columns). The new fields are nullable=True, and DQX docs surface {"mergeSchema": "true"} as the documented write option which could be used here. But the upgrade requires user action. We put this in the release notes: https://github.com/databrickslabs/dqx/releases/tag/v0.14.0 |
Gotcha, thanks! Looks like I need to set up some notifications for the release notes 😅 |
Changes
Added rule_fingerprint, rule_set_fingerprint, and created_at to checks storage. Added rule_set_fingerprint to summary metrics so that rules can be traced.
BREAKING CHANGE!
Default mode changed from "overwrite" to "append" when saving checks to a delta and lakebase table. Rules are versioned going forward and each new entry has a created_at timestamp, rule_set_fingerprint and rule_fingerprint.
Linked issues
Resolves #672
Tests