Skip to content

[spark] Recompute bucket number for postpone overwrite - #9051

Merged
JingsongLi merged 1 commit into
apache:masterfrom
Zouxxyy:xinyu/postpone-overwrite-recompute-buckets
Aug 6, 2026
Merged

[spark] Recompute bucket number for postpone overwrite#9051
JingsongLi merged 1 commit into
apache:masterfrom
Zouxxyy:xinyu/postpone-overwrite-recompute-buckets

Conversation

@Zouxxyy

@Zouxxyy Zouxxyy commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Purpose

INSERT OVERWRITE removes the previous contents, so the existing bucket layout should not constrain the replacement data.

This change skips loading existing bucket metadata for overwrite and infers the fixed bucket number from the newly staged batch. Append and rescale behavior remain unchanged.

Tests

PostponeBucketTableTest: 28 tests passed.

Ignore the previous bucket layout for overwrite writes and infer the fixed bucket number from the newly staged batch.

Co-Authored-By: Claude Code <noreply@anthropic.com>
AI-Model: gpt-5
AI-Contributed/Feature: 27/27
AI-Contributed/UT: 33/33
@JingsongLi

Copy link
Copy Markdown
Contributor

+1

@JingsongLi
JingsongLi merged commit 7d10cf2 into apache:master Aug 6, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants