Repository navigation
fix: reject unsafe legacy index coverage - #10256
Conversation
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.
Tip: disable this comment in your organization's Code Review settings.
Use the shared writable schema validator and retain reserved-name regression coverage alongside legacy index protections.
There was a problem hiding this comment.
✅ Gate recommendation: approve.
Rejecting unsafe commits preserves index definitions and fragment provenance without changing stored formats. Shared validation from #9499 covers the reserved-name checks. The broader reservation-ownership problem in #10253 has unchanged exposure and is not a prerequisite for this repair.
Xuanwo
left a comment
There was a problem hiding this comment.
Reviewed. Guards reject rewriting indexed fields when a user index has unknown coverage and reject claiming fragment ids still recorded in index bitmaps; nested-struct, tagged, and fragment-reuse cases covered. Schema-evolution tests lock in existing reserved-name guards. CI green on head.
Legacy commits could reuse a retired fragment ID still recorded in an index bitmap, making new rows appear indexed, or rewrite values while retaining a user index with unknown coverage.
main.Regression coverage also includes delete/reserve/claim sequences across append, update, merge, and rewrite, and unknown coverage across all three column rewrite operations on tagged and untagged tables.
This guards index coverage; general cross-version reservation ownership remains outside this repair (#10253).
Validation after merging
main:cargo fmt --allcargo clippy --all --tests --benches -- -D warningscargo test -p lance-table --lib(766 passed)cargo test -p lance --lib dataset::schema_evolution::test:: -- --test-threads=8(98 passed)Fixes #10254