Skip to content

fix(commit): retry a data overlay rebased over a projection that drops its field - #10123

Merged
Xuanwo merged 1 commit into
lance-format:mainfrom
ump45nose:fix/overlay-rebased-over-project
Oct 23, 2026
Merged

Xuanwo merged 1 commit into
lance-format:mainfrom
ump45nose:fix/overlay-rebased-over-project

Conversation

@ump45nose

Copy link
Copy Markdown
Contributor

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.

…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.

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@github-actions github-actions Bot added the bug Something isn't working label Oct 18, 2026

@lance-gatekeeper lance-gatekeeper Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ 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.

@lance-gatekeeper lance-gatekeeper Bot added the K-approved Latest Gatekeeper recommendation permits acceptance. label Oct 18, 2026
@wjones127 wjones127 added the priority: high Issues that are high priority (for LanceDb, the organization) label Oct 19, 2026
@Xuanwo
Xuanwo merged commit 4a519a2 into lance-format:main Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working K-approved Latest Gatekeeper recommendation permits acceptance. priority: high Issues that are high priority (for LanceDb, the organization)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: a DataOverlay rebased over a concurrent Project keeps an overlay for a dropped column

3 participants