Repository navigation
test: cover persisted null ordering value merge across write paths - #20218
Draft
lokeshj1703 wants to merge 1 commit into
Draft
lokeshj1703 wants to merge 1 commit into
lokeshj1703 wants to merge 1 commit into
Conversation
Seed a null ordering (precombine) value via bulk_insert, then merge a real-ordering record onto the same key through Spark DataSource, Spark SQL, and Deltastreamer. Each test asserts the payload based merge resolves cleanly and the incoming record wins. Test-only change.
Member
|
Temporarily closing this PR while we debug a GitHub settings error on master (#20471); it will be reopened shortly, no action needed. |
This branch has not been deployed
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.
Change Logs
Adds functional tests that characterize how the 0.x payload based merge path handles an ordering (precombine) value that is already persisted as null in a base file, across the three write paths: Spark DataSource, Spark SQL, and Deltastreamer.
A record with a null precombine value is first seeded via bulk_insert, which uses the row-writer path and so does not go through the payload constructor that rejects a null ordering value. A real-ordering record is then merged onto the same key, and each test asserts the merge resolves cleanly with the incoming record winning. This locks in the payload based merge behavior (DefaultHoodieRecordPayload treats a persisted null ordering value as the loser) as a regression guard. No production code is changed.
Impact
None. Test-only change.
Risk level (write none, low medium or high below)
none
Documentation Update
none
Contributor's checklist