QuestionQ191

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 is trying to insert new records into the table, including one record with latitude = 45.50 and longitude = 212.67.

Which statement describes the result of this batch insert?

Explanation

The value longitude = 212.67 violates the constraint because valid longitude values must be no greater than 180. Delta Lake enforces CHECK constraints on write; a constraint violation fails the transaction with an error, so no records from that batch insert are committed.

Learn more

Community Discussion

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