Add custom error message for pyspark register_check_method
which currently defaults to None
#1716
Open
3 tasks done
Labels
bug
Something isn't working
Describe the bug
Currently, when you register a custom check in pyspark there is no option to add a custom error message as one can do in the register builtin check. This leads to the error message on check fail to be
None
.Code Sample, a copy-pastable example
Result:
Expected behavior
Ideally, the
@register_check_method
method should have an optionalerror
parameter like the@register_builtin_check
has. With the example above, the decorator would look like:@register_check_method(error="fraction_ge({value=}, {fraction=})")
The output on a failed check would be:
The text was updated successfully, but these errors were encountered: