QuestionQ19

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

The constraint explicitly specifies ON VIOLATION DROP ROW, meaning violating records are excluded from the target dataset. DLT logs these drops in the event log for audit and tracking purposes. The rows are neither quarantined nor added to the target; they are discarded and tracked.

Community Discussion

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