QuestionQ159

VerifiedData Ingestion & Acquisition

A Delta Lake table with CDF enabled, named customer_churn_params in the Lakehouse, is used by the machine learning team for churn prediction. The table contains customer information derived from several upstream sources. Currently, the data engineering team populates the table nightly by overwriting it with the current valid values derived from the upstream data sources.

The churn-prediction model used by the ML team is fairly stable in production. The team is interested only in making predictions for records that changed during the past 24 hours.

Which approach would make identifying these changed records simpler?

Explanation

Delta Change Data Feed tracks row-level inserts, updates, and deletes between table versions. Replacing the full-table overwrite with a MERGE that modifies only records whose values changed prevents unchanged records from being rewritten; the change feed can then identify the changed records for incremental prediction processing.

Learn more

Community Discussion

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