QuestionQ113

VerifiedData Governance

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 the table nightly by overwriting it with the current valid values derived from upstream data sources.

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

Given the current implementation, which method can be used?

Explanation

An overwrite creates a new Delta Lake version, and the previous version remains available in Delta history until retention or VACUUM removes the required historical files. Delta Lake time travel can query that previous snapshot alongside the current snapshot, allowing a query to calculate the data difference. DESCRIBE HISTORY provides operation history and metrics, not every changed record.

Learn more

Community Discussion

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