Skip to content

test: cover persisted null ordering value merge across write paths - #20218

Draft
lokeshj1703 wants to merge 1 commit into
apache:branch-0.xfrom
lokeshj1703:test-persisted-null-ordering-0x
Draft

lokeshj1703 wants to merge 1 commit into
apache:branch-0.xfrom
lokeshj1703:test-persisted-null-ordering-0x

Conversation

@lokeshj1703

Copy link
Copy Markdown
Collaborator

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

  • Read through contributor's guide
  • Change Logs and Impact were stated clearly
  • Adequate tests were added if applicable
  • CI passed

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.
@github-actions github-actions Bot added the size:M PR with lines of changes in (100, 300] label Oct 7, 2026
@voonhous

voonhous commented Nov 7, 2026

Copy link
Copy Markdown
Member

Temporarily closing this PR while we debug a GitHub settings error on master (#20471); it will be reopened shortly, no action needed.

@voonhous voonhous closed this Nov 7, 2026
@voonhous voonhous reopened this Nov 7, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M PR with lines of changes in (100, 300]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants