[SPARK-59645][SDP] SCD1 Ignore-null support; Refactor SCD1 microbatch reconciliation into strategies - #58915
Open
AnishMahto wants to merge 5 commits into
Open
[SPARK-59645][SDP] SCD1 Ignore-null support; Refactor SCD1 microbatch reconciliation into strategies#58915AnishMahto wants to merge 5 commits into
AnishMahto wants to merge 5 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
Default SCD1 reconciliation accepts or rejects an event wholesale, so all columns share one row-level version. Ignore-null permits different events to author different leaves, requiring fundamentally different deduplication and tombstone reconciliation.
Refactor
Scd1BatchProcessorto delegate to a reconciliation strategy and move existing behavior into the defaultScd1RowLevelReconciliation. This preserves current behavior while establishing the boundary for future leaf-level reconciliation.This is a pure refactor PR, and does not yet introduce the strategy that per-leaf reconciliation (i.e ignore-null) will use. No new behavior is added, and no existing behavior is changed.
Why are the changes needed?
Preparing
Scd1BatchProcessorto support an alternative leaf-level reconciliation strategy, required for ignore-null support.Does this PR introduce any user-facing change?
No. This is a pure refactoring change.
How was this patch tested?
Existing tests. No new tests added as this is a pure refactoring change.
Was this patch authored or co-authored using generative AI tooling?
Co-authored with GPT 5.6 Sol.