Skip to main content
GuideServerConfigure and deploy Tabsdata servers on your machine.TutorialsConfigure data integration workflows within a running Tabsdata server.Advanced TutorialsBuild end-to-end workflows between two specific systems.API ReferenceCLI ReferenceRelease Notes
Version: 2.0.0

Fail

class
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
thresholdThreshold

The RowCountThreshold or PercentThreshold that, when reached, fails the transaction.

parameter
criteriaCriteria

Selects the rows counted against the threshold.

Methods

method
to_dict
def to_dict() -> dict[str, Any]

method
to_json
def to_json(indent: int | None = None) -> str

Parameters:

parameter
indentint | None

method
from_dict
def from_dict(d: dict[str, Any]) -> Any

Parameters:

parameter

method
from_json
def from_json(s: str | bytes) -> Any

Parameters:

parameter