QuestionQ53

VerifiedData Transformation, Cleansing, and Quality

A data engineer has a Delta table named order with deletion vectors enabled. The engineer attempts to run the following code:

DELETE FROM orders WHERE status = 'cancelled'  

What is the expected behavior of deletion vectors when this command executes?

Explanation

Deletion vectors logically delete rows by recording the affected row positions in Delta metadata rather than immediately rewriting the underlying data files. The original files therefore remain unchanged until they are later rewritten or removed by maintenance operations.

Learn more

Community Discussion

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