Skip to content

Commit

Permalink
Adding the params config to the row expectations
Browse files Browse the repository at this point in the history
Adding the params config to the row expectations would enable passing dynamic parameters to the expectation.
  • Loading branch information
vigneshwarrvenkat authored Jul 2, 2024
1 parent d3edcde commit 7912eb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spark_expectations/utils/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ def get_rules_from_df(
"rule_type": row["rule_type"],
"rule": row["rule"].format(**params),
"column_name": row["column_name"],
"expectation": row["expectation"],
"expectation": row["expectation"].format(**params),
"action_if_failed": row["action_if_failed"],
"enable_for_source_dq_validation": row[
"enable_for_source_dq_validation"
Expand Down

0 comments on commit 7912eb9

Please sign in to comment.