You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Anish Mahto (Jira)" <ji...@apache.org> on 2026/06/11 20:56:00 UTC

[jira] [Created] (SPARK-57395) Implement SCD2 Batch Processor; foreachBatch Callback

Anish Mahto created SPARK-57395:
-----------------------------------

             Summary: Implement SCD2 Batch Processor; foreachBatch Callback
                 Key: SPARK-57395
                 URL: https://issues.apache.org/jira/browse/SPARK-57395
             Project: Spark
          Issue Type: Sub-task
          Components: Declarative Pipelines
    Affects Versions: 4.3.0
            Reporter: Anish Mahto


{*}Preamble{*}:

The SCD type 2 flow is a foreachBatch streaming query on an input change-data-feed, and is responsible for reconciling the incoming change data onto some target table that follows SCD2 replication semantics.

SCD2 flows also maintain an "auxiliary" table to keep track of early-arriving out-of-order received events state. Each microbatch will need to reconcile against this auxiliary table as well, and update the auxiliary table's state appropriately for future microbatches.

*foreachBatch Callback*

Implementation of the actual callback that will be passed into the foreachBatch streaming query for SCD2 flows.

The callback orchestrates calling all of the `Scd2BatchProcessor` helpers to execute the complete reconciliation of a change-data-feed microbatch onto the auxiliary and target tables.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org