Skip to content

[core] Limit vector live-row planning to indexed ranges#8586

Open
QuakeWang wants to merge 1 commit into
apache:masterfrom
QuakeWang:vector-live-row-ranges
Open

[core] Limit vector live-row planning to indexed ranges#8586
QuakeWang wants to merge 1 commit into
apache:masterfrom
QuakeWang:vector-live-row-ranges

Conversation

@QuakeWang

Copy link
Copy Markdown
Member

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:check
  • mvn -pl paimon-core -DwildcardSuites=none -Dtest=VectorSearchBuilderTest test
  • mvn -pl paimon-core -DwildcardSuites=none -Dtest=FullTextSearchBuilderTest#testFullTextSearchExcludesDeletedIndexedRows test
  • mvn -pl paimon-core -am -Pfast-build -DfailIfNoTests=false -DwildcardSuites=none -Dtest=VectorSearchBuilderTest#testVectorLiveRowPlanningSkipsUnindexedDeletionVectors test

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>
@JingsongLi JingsongLi closed this Jul 13, 2026
@JingsongLi JingsongLi reopened this Jul 13, 2026
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