Skip to main content

databricks.labs.dqx.checks_validator

ChecksValidationStatus Objects

@dataclass(frozen=True)
class ChecksValidationStatus()

Class to represent the validation status.

add_error

def add_error(error: str)

Add an error to the validation status.

add_errors

def add_errors(errors: list[str])

Add an error to the validation status.

has_errors

@property
def has_errors() -> bool

Check if there are any errors in the validation status.

errors

@property
def errors() -> list[str]

Get the list of errors in the validation status.

to_string

def to_string() -> str

Convert the validation status to a string.

__str__

def __str__() -> str

String representation of the ValidationStatus class.

ChecksValidator Objects

class ChecksValidator()

Validates declarative quality rules (checks).

Ensures each check references a defined function and that merged arguments satisfy the function signature: required parameters must be present (for_each_column may supply column or columns); a top-level rule filter is not a substitute for missing arguments. Unknown argument names and type mismatches (where annotations exist) are reported.