[core] Limit vector live-row planning to indexed ranges#8586
Open
QuakeWang wants to merge 1 commit into
Open
Conversation
Vector pre-filter planning currently scans deletion vectors for the entire snapshot even though indexed vector searches only consume indexed row ranges. This can read unrelated deletion-vector files and add unnecessary planning work. Push indexed row ranges into live-row snapshot planning while preserving the existing full-text path. Add regression coverage to verify deletion vectors outside indexed ranges are not read. Signed-off-by: QuakeWang <wangfuzheng0814@foxmail.com>
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
Vector live-row pre-filter planning scans deletion vectors for the entire snapshot, even though indexed vector search only consumes row ranges covered by index splits. This reads unrelated deletion-vector files and adds unnecessary planning work.
This change pushes indexed row ranges into snapshot planning so files and deletion vectors outside those ranges are pruned. The existing full-text live-row path remains unchanged.
Tests
mvn -pl paimon-core -DskipTests spotless:check checkstyle:checkmvn -pl paimon-core -DwildcardSuites=none -Dtest=VectorSearchBuilderTest testmvn -pl paimon-core -DwildcardSuites=none -Dtest=FullTextSearchBuilderTest#testFullTextSearchExcludesDeletedIndexedRows testmvn -pl paimon-core -am -Pfast-build -DfailIfNoTests=false -DwildcardSuites=none -Dtest=VectorSearchBuilderTest#testVectorLiveRowPlanningSkipsUnindexedDeletionVectors test