Skip to content

fix: invalidate indices for fields rewritten by Merge#7491

Merged
wkalt merged 1 commit into
lance-format:mainfrom
wkalt:ticket/gen-691/datareplacement-index-stale
Jun 26, 2026
Merged

fix: invalidate indices for fields rewritten by Merge#7491
wkalt merged 1 commit into
lance-format:mainfrom
wkalt:ticket/gen-691/datareplacement-index-stale

Conversation

@wkalt

@wkalt wkalt commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

The Merge arm only dropped indices for fields removed from the schema, so a field rewritten in place (new backing data file, same field id) kept its index covering the fragment with stale entries. Index-served queries then silently returned wrong results -- a filter on the rewritten column matches the old values rather than the current data. Prune the rewritten fragment from any index over a field whose backing data file changed, reusing the same primitive the DataReplacement arm already uses.

The Merge arm only dropped indices for fields removed from the schema, so a
field rewritten in place (new backing data file, same field id) kept its index
covering the fragment with stale entries. Index-served queries then silently
returned wrong results -- a filter on the rewritten column matches the old
values rather than the current data. Prune the rewritten fragment from any index
over a field whose backing data file changed, reusing the same primitive the
DataReplacement arm already uses.
@github-actions github-actions Bot added the bug Something isn't working label Jun 25, 2026
@codecov

codecov Bot commented Jun 26, 2026

Copy link
Copy Markdown

Codecov Report

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

Files with missing lines Patch % Lines
rust/lance/src/dataset/transaction.rs 97.77% 0 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

@wkalt
wkalt merged commit 59cf5c7 into lance-format:main Jun 26, 2026
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants