Skip to content

Commit bdf7981

Browse files
authored
Refactor quality rule check function parameters
1 parent f4c1d35 commit bdf7981

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/dqx/docs/reference/quality_rules.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ checks = [
450450
criticality="error",
451451
name="col1_is_not_unique2",
452452
# provide default value for NULL in the time column of the window spec using coalesce() to prevent rows exclusion!
453-
check=is_unique("col1", window_spec=F.window(F.coalesce(F.col("col6"), F.lit(datetime(1970, 1, 1))), "10 minutes"))
453+
check_func=is_unique, col_name="col1", check_func_kwargs={"window_spec": F.window(F.coalesce(F.col("col6"), F.lit(datetime(1970, 1, 1))), "10 minutes")}
454454
),
455455
DQRule(
456456
criticality="error",

0 commit comments

Comments
 (0)