QuestionQ119

VerifiedData Processing & Transformations

The Delta transaction log for the ‘students’ tables is shown using the ‘DESCRIBE HISTORY students’ command. A Data Engineer needs to query the table as it existed before the UPDATE operation listed in the log.

Which command should the Data Engineer use to achieve this?

Question Image

Choose two
Explanation

Delta Lake supports two equivalent syntaxes for time travel: the shorthand @v4 notation and the explicit VERSION AS OF clause. Both A (SELECT * FROM students@v4) and B (TIMESTAMP AS OF before the UPDATE operation) correctly query the table state before version 5's UPDATE. Option D uses VERSION AS OF 5, which references the UPDATE itself, not before it.

Community Discussion

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