Creating Complex Custom Checks #164
-
|
I'm looking to implement a DQX check that validates a column's value is less than a certain number if another column is equal to a certain value. I've tried using the sql_expression:custom check: |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
|
Update: Currently implementing this check by the following code and using |
Beta Was this translation helpful? Give feedback.
-
|
Can't we write subquery in the sql expression. I am trying to do a reference check with another table. How to write joins, exists queries? |
Beta Was this translation helpful? Give feedback.
-
The filter is not limited to certain checks. It works for all checks.
You can leverage |
Beta Was this translation helpful? Give feedback.
-
|
We have also introduced ability to define checks in the complex column types like struct, map, array. Check out the latest release: https://github.com/databrickslabs/dqx/releases/tag/v0.3.0 |
Beta Was this translation helpful? Give feedback.
-
|
You can now create custom dataset level checks: https://databrickslabs.github.io/dqx/docs/reference/quality_rules/#creating-custom-dataset-level-checks |
Beta Was this translation helpful? Give feedback.
-
|
Thank you @mwojtyczka! |
Beta Was this translation helpful? Give feedback.
You can now create custom dataset level checks: https://databrickslabs.github.io/dqx/docs/reference/quality_rules/#creating-custom-dataset-level-checks