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()

Class to validate quality rules (checks).