Repository navigation
Conversation
|
ACTION NEEDED The PR title and description are used as the merge commit message. Please update your PR title and description to match the specification. For details on the error please inspect the "PR Title Check" action. |
b02120f to
d236826
Compare
d236826 to
00dd1c3
Compare
|
Important Format specification voteThis PR modifies the Lance format specification, so it requires 3 binding +1 votes from PMC members (excluding the proposer), at least one of them on the latest commit, and a minimum 72-hour voting period, weekends excluded, before it can merge. Vote by approving this PR (+1) or requesting changes (−1, a veto). See the voting process. Approvals carry over across pushes, so a rebase or a typo fix does not send everyone back to re-vote. Whoever approves the latest commit is vouching that nothing substantive has changed since the earlier approvals; if something has, ask for fresh votes. Status: ❌ Blocked — 0 of 3 required approvals
Updated automatically by the format-spec vote gate, which re-checks every 15 minutes — just voted? Re-check now (press Run workflow; leave the input blank to re-check every open format PR). A PMC member may apply the |
…nd cleanup Co-authored-by: Drew <[email protected]>
00dd1c3 to
b410bbf
Compare
There was a problem hiding this comment.
✅ Gate recommendation: approve.
The deletion-cache finding is fixed in b410bbf. Inline vectors now use their encoded contents as cache identity, and repeated conversions preserve the deletion set even when legacy IDs are reused.
Xuanwo
left a comment
There was a problem hiding this comment.
Leaving one blocking question inline on DeletionFileKey regarding explicit deletion file cache identity across snapshots (separate from the already-addressed inline bitmap identity fix).
Small non-blocking rebase note: once rebased onto current main after the lance-table-runtime move, the new tests in cleanup.rs and deletions.rs will need updating to use the current Dataset accessors (e.g., table_state.base / table_state.object_store).
| let location = relative_deletion_file_path(self.fragment_id, self.deletion_file); | ||
| match self.deletion_file.base_id { | ||
| Some(base_id) => Cow::Owned(format!("deletion/{base_id}/{location}")), | ||
| None => Cow::Owned(format!("deletion/{location}")), | ||
| } |
There was a problem hiding this comment.
This is a blocking question from source inspection (runtime impact unverified), separate from the already-addressed inline bitmap identity change:
Explicit deletion file cache keys here (and in write_key below) identify entries by (base_id, path). Because base_paths mappings are manifest-scoped while a Session metadata cache can be shared across dataset versions, could the same base_id and relative path resolve to different storage roots across snapshots and collide in cache?
Could you clarify what invariant keeps (base_id, path) stable across snapshots, or consider scoping explicit deletion cache entries to the resolved base/storage identity so entries from different roots stay isolated?
#10914 added
DeletionFile.pathto the table format so deletion files can have an explicit location independent of their fragment ID. This PR adds support across commit fragment ID assignment, the session cache, inline deletions, and transaction serialization.At commit time, new fragments are assigned their final fragment IDs. Fragments with an explicit path or inline deletion bytes can move to a new ID safely, while derived deletion files still embed the fragment ID in their filename so commits now reject them if the ID changes.
In the session cache, explicit deletion files now key by
base_idandpath, inline vectors key by their bytes, and derived files keep their existing key fields. That avoids stale cache hits across fragment reassignments and inline conversions, and bumps the cache key schema version to 3.Compacting deletions inline clears
pathand assigns a fresh version and deletion ID, and protobuf transaction conversion validates deletion file locations before encoding.Testing
cargo test -p lance-table --liband targetedlancetests for deletion caching, inline deletions, explicit-path cleanup, and v0.7.5 migrationcargo clippy --no-deps --all-targets -- -D warnings(lance-table,lance) andcargo fmt --check