Skip to content

feat(format): add overlay_freshness to vector and inverted index details - #11260

Closed
wombatu-kun wants to merge 1 commit into
lance-format:mainfrom
wombatu-kun:format/11180-ranked-index-overlay-freshness
Closed

wombatu-kun wants to merge 1 commit into
lance-format:mainfrom
wombatu-kun:format/11180-ranked-index-overlay-freshness

Conversation

@wombatu-kun

@wombatu-kun wombatu-kun commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Summary

A merged segment keeps the oldest input dataset_version for 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_freshness field (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

  • Refresh stale rows at a common snapshot. This produces one segment in the existing format and requires the merge to reread and reindex those rows and remap physical row addresses where needed.
  • Keep inputs with incompatible overlay histories separate. Queries may need to search more segments, and merge_existing_index_segments requires 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.

@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 A-index Vector index, linalg, tokenizer A-format On-disk format: protos and format spec docs format-change A change to the format spec, which requires a vote. Remove if minor (e.g. fixing typo). enhancement New feature or request labels Nov 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Important

Format specification vote

This 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

Approvals none (0/3)
Latest commit approved by none — one PMC member must approve the latest commit
Vetoes none
Voting period ends Tue 2026-11-24 06:29 UTC (Mon 22:29 PST)

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 format-waived label to waive the vote for a trivial edit (typo, wording, formatting).

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

@lance-gatekeeper lance-gatekeeper Bot added the K-approved Latest Gatekeeper recommendation permits acceptance. label Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-format On-disk format: protos and format spec docs A-index Vector index, linalg, tokenizer enhancement New feature or request format-change A change to the format spec, which requires a vote. Remove if minor (e.g. fixing typo). K-approved Latest Gatekeeper recommendation permits acceptance.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant