Repository navigation
feat(format): add overlay_freshness to vector and inverted index details - #11260
wombatu-kun wants to merge 1 commit into
Conversation
|
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 |
There was a problem hiding this comment.
✅ Gate recommendation: approve.
The file-identity exceptions address mixed-snapshot overlay freshness while preserving the version used for row-address translation. The format contract is suitable for the runtime implementation in #11261.
Summary
A merged segment keeps the oldest input
dataset_versionfor row-address translation. If one input missed an overlay at v21 and another indexed one at v22, no single version can hide the first input's stale entry and keep the second input's valid hit.For each affected fragment, the optional
overlay_freshnessfield (32) records the build snapshots and the overlay files every contributing input indexed. Readers recognize an indexed file by its commit version, path, and base. Other overlays follow the existing version check.Compatibility
Writers omit the field when no exceptions are needed. Older readers that support overlays skip it. A writer adding the field to a vector segment with missing model details must also record its distance metric.
Alternatives considered
merge_existing_index_segmentsrequires one output segment.Per-file exceptions let the merge produce one segment without reindexing rows solely to advance
dataset_version. Original design discussion.Part of #11180. Runtime support follows in the implementation PR.