Skip to content

refactor(index): introduce RowIdRemapper trait to decouple ScalarIndexPlugin from FragReuseIndex#7394

Open
westonpace wants to merge 2 commits into
lance-format:mainfrom
westonpace:refactor/fri-to-remapper-trait
Open

refactor(index): introduce RowIdRemapper trait to decouple ScalarIndexPlugin from FragReuseIndex#7394
westonpace wants to merge 2 commits into
lance-format:mainfrom
westonpace:refactor/fri-to-remapper-trait

Conversation

@westonpace

Copy link
Copy Markdown
Member

Replaces the concrete FragReuseIndex parameter in ScalarIndexPlugin::load_index and get_from_cache with an abstract RowIdRemapper trait, removing the direct dependency of scalar index infrastructure on the table-level fragment-reuse type. FragReuseIndex implements the new trait and the call site in lance casts before passing through.

@github-actions github-actions Bot added the A-index Vector index, linalg, tokenizer label Jun 22, 2026
westonpace and others added 2 commits June 23, 2026 08:30
…xPlugin from FragReuseIndex

Replaces the concrete `FragReuseIndex` parameter in `ScalarIndexPlugin::load_index`
and `get_from_cache` with an abstract `RowIdRemapper` trait, removing the direct
dependency of scalar index infrastructure on the table-level fragment-reuse type.
`FragReuseIndex` implements the new trait and the call site in lance casts before
passing through.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@westonpace westonpace force-pushed the refactor/fri-to-remapper-trait branch from 3dbd27d to 8aa5b43 Compare June 23, 2026 15:31
@codecov

codecov Bot commented Jun 23, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 97.95918% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
rust/lance-index/src/scalar/inverted/index.rs 80.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@Xuanwo Xuanwo left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, need to address the conflicts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-index Vector index, linalg, tokenizer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants