QuestionQ124

VerifiedData Ingestion & Acquisition

A data engineer uses the AUTO CDC API in Lakeflow Spark Declarative Pipeline to propagate deletions from a source table (orders_source) to a target table (orders_target). The source has Change Data Feed (CDF) enabled, but upstream delays cause some delete events to arrive out of order.

How does the AUTO CDC API internally ensure that deletions are applied correctly despite out-of-order events?

Explanation

AUTO CDC uses sequence_by to establish the logical order of CDC events rather than relying on their arrival order. It retains delete tombstones long enough for late-arriving, older-sequence events to be handled correctly, preventing an out-of-order event from producing an incorrect final state.

Learn more

Community Discussion

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