QuestionQ23

VerifiedData Transformation, Cleansing, and Quality

A Delta Lake table named customer_churn_params in the Lakehouse is used by the machine learning team for churn prediction. The table holds customer information derived from several upstream sources. At present, the data engineering team populates this table nightly by overwriting it with the currently valid values derived from upstream data sources.

Immediately after every successful update, the data engineering team wants to determine the difference between the new table version and its preceding version.

Given the current implementation, which method can be used?

Explanation

A Delta Lake overwrite creates a new table version and retains the preceding committed snapshot in Delta history, subject to retention. Time travel can read the current and prior versions independently, allowing a query to compare their rows and calculate the difference. DESCRIBE HISTORY exposes operation-level metadata, not a full record-level change log, and change data feed must be enabled before the relevant changes are committed. Delta Lake time travel is specifically intended for querying and comparing historical table versions.

Learn more

Community Discussion

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