[core][flink][spark] Support default bucket number for postpone writes - #9067
Merged
JingsongLi merged 1 commit intoAug 6, 2026
Merged
Conversation
Zouxxyy
marked this pull request as draft
August 6, 2026 07:38
Use an explicitly configured bucket number for safe direct Spark writes to new layouts and overwrite operations. Centralize postpone bucket resolution across Core, Flink, and Spark, decouple logical buckets from engine parallelism, and limit merge-on-read metadata scans to relevant partitions. Co-Authored-By: Claude Code <noreply@anthropic.com> AI-Model: gpt-5 AI-Contributed/Feature: 531/531 AI-Contributed/UT: 296/296
Zouxxyy
force-pushed
the
xinyu/postpone-default-bucket-direct-write
branch
from
August 6, 2026 09:43
e361a67 to
74bb6e7
Compare
Zouxxyy
marked this pull request as ready for review
August 6, 2026 09:49
Contributor
|
+1 |
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.
Purpose
postpone.default-bucket-numoptional. When configured, use its value exactly for partitions receiving their first real-bucket layout and for fixed-bucket overwrite writes.-2files. Appends to existing real-bucket layouts remain on the staged rescale path; mixed batches stay staged and use the configured default only for new partitions.postpone.target-row-num-per-bucketorpostpone.target-size-per-bucket; execution parallelism no longer determines the logical bucket count.Tests
PostponeUtilsTestandTableScanTest: 35 passedPostponeBucketTableTest: 30 passedPostponeBucketTableITCase#testCompactWithTargetRowNumPerBucket: 1 passedmvn spotless:check -Pspark3