[SPARK-57150][SDP] SCD1 Out-of-order Convergence Suite#56214
Open
AnishMahto wants to merge 2 commits into
Open
[SPARK-57150][SDP] SCD1 Out-of-order Convergence Suite#56214AnishMahto wants to merge 2 commits into
AnishMahto wants to merge 2 commits into
Conversation
Contributor
Author
|
@jose-torres Short test-only PR for A/B testing the out-of-order correctness of the AutoCDC SCD1 implementaiton |
jose-torres
reviewed
May 29, 2026
| } | ||
| } | ||
|
|
||
| gridTest("SCD1 merge converges across micro-batch shuffling for randomly generated " + |
Contributor
There was a problem hiding this comment.
Not sure this is quite right as a test structure. I'd expect to see a single test with a single seed that's randomized by default or uses a passed in command line argument. Right now there's no way to actually perform a reproduction without editing and rebuilding the test code.
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?
A key feature of SDP's AutoCDC implementation is that it supports reconciling out-of-order (by sequence) events. This support also adds significant complexity to the reconciliation logic as it requires cross-microbatch stateful tracking in the auxiliary table, and is prone to breaking as the implementation evolves over time.
Introduce an A/B style test suite to execute the implementation on both a sequence-sorted single-microbatch event stream and the same events on a shuffled multi-microbatch event stream. If out-of-order processing is correct, then the SCD1 implementation should produce the same target tables for both runs.
Data is randomly generated, but with a constant seed for reproducibility.
Why are the changes needed?
Test correctness of the AutoCDC SCD1 out-of-order reconciliation algorithm. Prevents signal for existing implementation's correctness and helps prevent regressions in future iterations.
Does this PR introduce any user-facing change?
No
How was this patch tested?
Test only change.
Was this patch authored or co-authored using generative AI tooling?
Co-authored with Claude Opus 4.7