I would like to add several new rules in suggestions deequ workflow. For example deequ is offering check if column contains URL (containsURL). I would like to make corresponding suggestion rule.
I would appreciate suggestions how to do that.
Thanks,
Dejan
The official documentation contains an example for constraint suggestion. In the example, the constraint suggestion is executed via
The rules are passed in by specifying the argument to
addConstraintRules
.Rules.DEFAULT
, the default set of rules to use, is defined in theConstraintSuggestionRunner
(link).Hence, to add a new rule, you'd need to declare a rule that extends
ConstraintRule
(link) or one of its subtypes (link) and pass it to theConstraintSuggestionRunner
when executing.