Q: 11
A dataset has been defined using Delta Live Tables and includes an expectations clause:
CONSTRAINT valid_timestamp EXPECT (timestamp > '2020-01-01') ON VIOLATION FAIL UPDATE
What is the expected behavior when a batch of data containing data that violates these constraints is
processed?
Options
Discussion
B , but not 100% sure. The wording around 'FAIL UPDATE' makes me think the whole batch fails if there's a violation, so A feels more likely. If it was 'DROP RECORD', it'd probably be C instead. Open to correction if I'm off.
I don't think it's C here. With 'ON VIOLATION FAIL UPDATE', the whole job fails if any bad record is found, so A fits better. C's a common trap for 'DROP RECORD' cases. Pretty sure on this, correct me if I'm missing something.
Makes sense to me, I'd go with Option C for this one.
A Option C is actually a trap here, since 'FAIL UPDATE' should cause the job to fail, not just drop invalid records.
C
Be respectful. No spam.