Repository navigation
fix(commit): retry a data overlay rebased over a projection that drops its field - #10123
Merged
Xuanwo merged 1 commit intoOct 23, 2026
Merged
Conversation
…s its field check_data_overlay_txn treated every concurrent Project as compatible, so an overlay staged before a column drop still committed and landed covering a field that is no longer in the schema. Treat a Project whose schema drops one of the overlay's fields as a retryable conflict. Closes lance-format#9724.
Contributor
There was a problem hiding this comment.
✅ Gate recommendation: approve.
The retryable conflict closes #9724's stale-schema overlay race. Local verification passed the resolver suite and real two-fragment commits covering field removal, unrelated-column removal, and rename.
Xuanwo
approved these changes
Oct 23, 2026
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.
Closes #9724.
A
DataOverlaystaged at version N still committed after a concurrentProjectat N+1 dropped the field it overlays.check_data_overlay_txntreated everyProjectas 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, whereProjectprunes overlays that are already committed.This makes
Projecta 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_conflictsgained twoProjectcases, 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_resolverandcargo test -p lance --lib overlaypass,cargo fmt --allis clean, andcargo clippy -p lance --lib --tests -- -D warningspasses; 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.