Repository navigation
feat: add append_or_create mode to LanceDataSink - #96
Open
qingfeng-occ wants to merge 1 commit into
Open
qingfeng-occ wants to merge 1 commit into
qingfeng-occ wants to merge 1 commit into
Conversation
qingfeng-occ
marked this pull request as draft
November 20, 2026 09:06
qingfeng-occ
force-pushed
the
append_or_create
branch
2 times, most recently
from
November 21, 2026 02:47
151a3aa to
06054e7
Compare
qingfeng-occ
force-pushed
the
append_or_create
branch
from
November 21, 2026 02:54
06054e7 to
8b14493
Compare
qingfeng-occ
marked this pull request as ready for review
November 21, 2026 03:00
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
Adds an
append_or_createmode toLanceDataSink: append if the dataset exists, create it otherwise. Resolves to the existingcreate/appendpaths, so no new write/commit logic.Implementation
Lance's
write_fragmentsonly acceptscreate/append/overwrite, so the mode is resolved in_absorb_existing_dataset()(which already detects whether the dataset exists):_write_mode = "create"_write_mode = "append" (with the usual schema check)Resolution happens in
start(), so the physical write and commit paths are unchanged.Closes: #95