Skip to content

[core] Honor query-level search-mode overrides - #9128

Open
CrownChu wants to merge 1 commit into
apache:masterfrom
CrownChu:fix/vector-query-search-mode-override
Open

[core] Honor query-level search-mode overrides#9128
CrownChu wants to merge 1 commit into
apache:masterfrom
CrownChu:fix/vector-query-search-mode-override

Conversation

@CrownChu

@CrownChu CrownChu commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

What is the purpose of the change?

DataEvolutionVectorScan reads search-mode settings directly from table options, so query-level overrides supplied by the query builder are ignored. This prevents callers from overriding vector or scalar index search behavior for an individual query.

Brief change log

  • Build effective options by applying table options first and query options second.
  • Use the effective options for both vector-index and scalar-index search modes.
  • Add regression coverage proving that a query-level scalar full-search override restores fallback rows when the table default is fast mode.

Verifying this change

mvn -pl paimon-core -am -DskipITs -Dfast \
  -Dtest=VectorSearchBuilderTest#testFastScalarModePartialPreFilterOnlyUsesIndexedRows \
  -Dsurefire.failIfNoSpecifiedTests=false test

Result: the focused regression test passed. Spotless and Checkstyle also 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.

1 participant