Repository navigation
fix: prune overlays for dropped columns - #9314
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
✅ Gate recommendation: approve.
This fixes the manifest-retention leak at its authoritative boundary: both schema-changing paths remove overlays that no longer provide any live field while preserving mixed overlays. The focused multi-fragment regression covers both Project and Merge.
Contributor
There was a problem hiding this comment.
✅ Gate recommendation: approve.
The effective patch is unchanged after the base merge. It still fixes the manifest-retention leak at its authoritative boundary: both schema-changing paths remove overlays that no longer provide any live field while preserving mixed overlays.
wjones127
approved these changes
Oct 5, 2026
wjones127
added a commit
to wjones127/lance
that referenced
this pull request
Oct 5, 2026
…#9217, lance-format#9313 Expose rechunk_row_lineage (main's replacement for rechunk_stable_row_ids) for the rewrite scenario. Un-ignore the three fixed-bug tests as regression tests and regenerate both grids. The (data_overlay, project) cell stays excluded under lance-format#9724, which lance-format#9314 did not cover. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Xuanwo
pushed a commit
that referenced
this pull request
Oct 23, 2026
…s its field (#10123) Closes #9724. A `DataOverlay` staged at version N still committed after a concurrent `Project` at N+1 dropped the field it overlays. `check_data_overlay_txn` treated every `Project` as compatible, and the overlay build arm doesn't look at the schema, so the overlay landed covering only fields that no longer exist. #9314 handles the other order, where `Project` prunes overlays that are already committed. This makes `Project` a retryable conflict for an overlay when the projected schema no longer contains one of the overlay's fields, which is the first option the issue gives. A projection that keeps all of the overlay's fields (a rename, or dropping some other column) is still compatible. Testing: `test_data_overlay_conflicts` gained two `Project` cases, one keeping the overlaid field (compatible) and one dropping it (retryable). The dropping case fails on main. `cargo test -p lance --lib io::commit::conflict_resolver` and `cargo test -p lance --lib overlay` pass, `cargo fmt --all` is clean, and `cargo clippy -p lance --lib --tests -- -D warnings` passes; I didn't run the full-workspace clippy. #9220 leaves the `(DataOverlay, Project)` cell out of its conflict matrix because of this bug; with this change it should be able to go back in. I used an AI coding assistant to help write this change and the test; I reviewed the diff and ran the checks above.
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.
Summary
ProjectandMergeschema changesRoot cause
Operation::Projectfiltered base data files against the projected schema but left each fragment overlay list unchanged.Operation::Mergecould publish the same stale overlay metadata when removing fields. Those overlay files remained referenced even though readers could no longer use any of their fields.Validation
cargo test -p lance-tablecargo fmt --allcargo clippy --all --tests --benches -- -D warningsFixes #9313