You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/dqx/docs/reference/quality_rules.mdx
+13-9Lines changed: 13 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ This page provides a reference for the quality checks (rule functions) available
10
10
11
11
The following built-in row-level checks are currently available in DQX.
12
12
These checks are applied to each row of a PySpark DataFrame and report quality issues as additional columns.
13
-
You can also define your own custom checks (see [Creating custom user-defined checks](#creating-custom-user-defined-checks)).
13
+
You can also define your own custom checks (see [Creating custom checks](#creating-custom-checks)).
14
14
15
15
Some of the checks such as `is_unique`, `is_aggr_not_greater_than`, or `is_aggr_not_less_than` are performed over a group of rows using window functions, while others operate on individual rows.
16
16
In all cases, the quality check results are always reported for individual rows in the reporting columns.
@@ -1021,7 +1021,7 @@ For example, to check that a column `a` is not null only when a column `b` is po
1021
1021
column: col1
1022
1022
```
1023
1023
1024
-
## Creating Custom User-Defined Checks
1024
+
## Creating Custom Checks
1025
1025
1026
1026
### Using SQL Expression
1027
1027
@@ -1048,7 +1048,7 @@ SQL Expressions are also useful if you need to make cross-column validation, for
1048
1048
1049
1049
### Using Python function
1050
1050
1051
-
If you need a reusable check or want to implement more complex logic which is challenging to implement using SQL expression, you can define your own custom check function.
1051
+
If you need a reusable check or want to implement more complex logic which is challenging to implement using SQL expression, you can define your own custom check function in Python.
1052
1052
A check function is a callable that uses `make_condition` to return `pyspark.sql.Column`.
1053
1053
1054
1054
#### Custom check example
@@ -1060,9 +1060,10 @@ A check function is a callable that uses `make_condition` to return `pyspark.sql
1060
1060
from pyspark.sql import Column
1061
1061
from databricks.labs.dqx.check_funcs import make_condition
0 commit comments