QuestionQ262

VerifiedData Ingestion & Acquisition

A data engineer is creating a customer data pipeline in Lakeflow Spark Declarative Pipelines. The source is a cloud-based event stream with limited retention that contains inserts, updates, and deletes for customer records. The changes are applied with the AUTO CDC INTO syntax to maintain an SCD Type 1 target table, customer_dim.

How should the data engineer create a downstream job that streams from the customer_dim table and acts only on update and delete events while processing data incrementally?

Explanation

An SCD Type 1 AUTO CDC target is updated in place, so an ordinary streaming read can encounter non-append changes. Its Change Data Feed provides incremental row-level change events with metadata that identifies updates and deletes; the downstream stream can read that feed and filter to the required event types.

Learn more

Community Discussion

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