Skip to content

Make the last integer split part the same width as the others - #74

Merged
teknogeek0 merged 1 commit into
mainfrom
fix/split-last-part-width
Oct 30, 2026
Merged

teknogeek0 merged 1 commit into
mainfrom
fix/split-last-part-width

Conversation

@teknogeek0

Copy link
Copy Markdown
Collaborator

The range width divided the key range by the part count, which includes the IS NULL part. The last part has no upper bound, so it covered two ranges. Divide by the number of key ranges instead.

With 8 parts, the last part covered 2/8 of the key range and the others 1/8 each. The expected output of the unit test 4-list-table-split recorded the uneven split and is updated.

The range width divided the key range by the part count, which
includes the IS NULL part. The last part has no upper bound, so it
covered two ranges. Divide by the number of key ranges instead.
@teknogeek0
teknogeek0 merged commit 31efc5c into main Oct 30, 2026
120 checks passed
@teknogeek0
teknogeek0 deleted the fix/split-last-part-width branch October 30, 2026 15:50
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