Repository navigation
[core] Preserve deletion vectors when regrouping sorted index splits - #11522
Open
JustinBinber wants to merge 2 commits into
Open
JustinBinber wants to merge 2 commits into
JustinBinber wants to merge 2 commits into
Conversation
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
Fixes #11520.
The sorted global-index builder repacks Data Evolution files into disjoint contiguous RowID splits. Preserve the deletion-file slot associated with each data file when building the new split, including after the files are reordered. Keep the existing range boundaries, writer and refresh behavior.
Tests
The tests-only base at
8b641ae1f3failed both Flink B-tree and Bitmap cases by indexing deleted rows. The candidate was verified with Core split and scanner tests, Flink B-tree/Bitmap build and refresh cases, and Spark indexed queries and refresh cases.In an earlier alternating A/B single-host Spark 3.5.9 comparison with independent copies of the same snapshot, 135,000 of 150,000 physical rows were deleted. Index entries changed from 150,000 to 15,000, files from 16 to 4, and shuffle write from 1,249,729 to 126,130 bytes. Range query results matched all 15,000 live IDs in every run. That fixture does not establish a production point-query latency change.