
Ultimate access to all questions.
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
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?
A
Records that violate the expectation are dropped from the target dataset and loaded into a quarantine table.
B
Records that violate the expectation are added to the target dataset and flagged as invalid in a field added to the target dataset.
C
Records that violate the expectation are dropped from the target dataset and recorded as invalid in the event log.
Explanation:
In Delta Live Tables (DLT), when you define a constraint with ON VIOLATION DROP ROW, the behavior is:
DROP ROW action specifically removes the rows, rather than adding them with flags.Key Points:
ON VIOLATION DROP ROW means violating rows are excluded from the target datasetON VIOLATION FAIL UPDATE which would fail the pipeline, or custom handling that might route to quarantine tables