Fail
class Fail(threshold: Threshold, criteria: Criteria)
Bases: CriteriaOperator
Categories: dq-operator
An operator that fails (aborts) the current transaction when the rows
selected by criteria reach threshold.
Examples
Abort the transaction on the first failing row:
Fail(AnyFailed(), RowCountThreshold(1))
Tolerate a little bad data instead, and fail only past a percentage:
Fail(AnyFailed(), PercentThreshold(5))
Parameters
parameter
thresholdThresholdThe RowCountThreshold or PercentThreshold that,
when reached, fails the transaction.
Methods
method
to_dictdef to_dict() -> dict[str, Any]