QuestionQ147

VerifiedData Governance & Quality

A dataset has been defined using Delta Live Tables and includes an expectations clause:

CONSTRAINT valid_timestamp EXPECT (timestamp > '2020-01-01') ON VIOLATION DROP ROW

What is the expected behavior when a batch of data containing data that violates these constraints is processed?

Explanation

With the ON VIOLATION DROP ROW clause, rows violating the EXPECT constraint are silently removed from the target dataset and their violations are logged in the event log for audit purposes. This allows the pipeline to continue without job failure.

Community Discussion

No comments yet. Be the first to start the discussion!