Skip to content

[lumina] Use the persisted index metric for raw vector search and refinement - #10562

Merged
JingsongLi merged 1 commit into
apache:masterfrom
thswlsqls:fix/lumina-persisted-index-metric
Oct 16, 2026
Merged

JingsongLi merged 1 commit into
apache:masterfrom
thswlsqls:fix/lumina-persisted-index-metric

Conversation

@thswlsqls

Copy link
Copy Markdown
Contributor

Purpose

fix #10559

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.

…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
@JingsongLi

Copy link
Copy Markdown
Contributor

+1

@JingsongLi
JingsongLi merged commit 0b800e8 into apache:master Oct 16, 2026
18 checks passed
@thswlsqls
thswlsqls deleted the fix/lumina-persisted-index-metric branch October 21, 2026 13:40
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.

[Bug] Lumina raw vector search and refinement ignore the metric persisted in the index

2 participants