QuestionQ121

VerifiedData Transformation, Cleansing, and Quality

A CHECK constraint was successfully added to the Delta table named activity_details with the following logic:

Question Image

A batch job attempts to insert new records into the table, including one record where latitude = 45.50 and longitude = 212.67.

Which statement describes the result of this batch insert?

Explanation

The longitude value 212.67 violates the enforced CHECK constraint because it is greater than 180. Delta Lake treats a constraint violation as an error that fails the write transaction, so none of the batch records are inserted.

Learn more

Community Discussion

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