Repository navigation
[lumina] Use the persisted index metric for raw vector search and refinement - #10562
Merged
JingsongLi merged 1 commit intoOct 16, 2026
Merged
Conversation
…inement LuminaVectorGlobalIndexer.metric() returned the table-configured metric even when the index was built with another metric, for example one passed only through create_global_index options. Core uses this metric to score unindexed rows in full/detail search modes and to refine indexed results, so those scores did not match the index scores. Record the distance metric persisted in the index metadata when a reader is created and report it from metric(). Keep the configured metric before any reader is created, when the metadata cannot be parsed, or when shards disagree on the metric. Generated-by: Claude Code
Contributor
|
+1 |
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
fix #10559
metric()returns the index meta's persisted metric aftercreateReader, so raw fallback and refinement match the index, like eslib ( [global-index-eslib]use thin packaging and fix pom bundle,fix query compatibility and vector metrics, and #8618) and pypaimon ([python] Use persisted vector metrics for raw search and refinement #9754).vector_searchwhen splits ≥ 2 × min(parallelism,global-index.thread-num), Spark when ≥ 2 ×global-index.thread-num), where the coordinator still uses the configured metric, and raw-only searches. Those need a core change, left for a follow-up.Tests
LuminaVectorGlobalIndexerFactoryTest(6/6 pass): persisted metric (red before fix), no reader, conflicting shards, corrupt meta.mvn -pl paimon-lumina clean verify(JDK 11): 49 run, 0 failures; 27 native-library tests were skipped locally (arm64), so CI covers them.