Repository navigation
Conversation
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.
Tip: disable this comment in your organization's Code Review settings.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Xuanwo
left a comment
There was a problem hiding this comment.
On e781340f, six independently constructed inputs matched the proposed fingerprint encoding. Please update Discussion #8965 to match this PR: BLAKE3 fingerprints let matching segments share routing even when another segment must route independently. The discussion still describes SHA-256 and all-or-nothing reuse.
When rebasing, please update the VectorIndexDetails initializer that landed in rust/lance/src/dataset/tests/dataset_transactions.rs. Compiling that initializer in isolation against the proposed generated type gives E0063 for the missing coarse_quantizer_fingerprint field.
For the implementation in #8966, infer_missing_vector_details replaces the details of every same-name segment when inference succeeds for one legacy segment. With two matching fingerprints and one legacy segment, that discards both valid fingerprints and produces three routing groups instead of two. Please preserve the known details and cover this combination through a reopened index in #8966.
Xuanwo
left a comment
There was a problem hiding this comment.
Please make independent routing explicit for a fingerprint version the reader does not recognize. Field 10 currently contains only a 32-byte digest. Changing the domain string changes the hash, but a v1 reader comparing two equal future digests in that field would still group the segments. One way to preserve the v1 layout is to reserve field 10 for v1 and put a future scheme in a different optional field. A writer could populate field 10 only when it can compute a valid v1 fingerprint for the final routing state. A v1 reader seeing only the future field would then route each segment independently, as it does for a missing or malformed fingerprint.
Keep the general recompute-or-clear rule for every writer that changes routing, including future writer paths. In #8966, please test the reopened fingerprint after centroid retraining, metric changes, remapping and optimization, checking that it matches the final routing state or is absent. Please also cover mixed fingerprinted and legacy segments, unknown versions, and old/new reader interoperability. Matching fingerprints establish routing identity only. Quantizer compatibility and physical merge eligibility retain their own checks.
e781340 to
42de882
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 |
There was a problem hiding this comment.
✅ Gate recommendation: approve.
Reserving field 10 for v1 resolves the evolution risk raised in Xuanwo’s review. Future schemes now require a separate optional field, with field 10 omitted unless a valid v1 fingerprint can be computed, preserving independent routing for older readers. The wire schema is unchanged; execution and lifecycle validation remain in #8966.
|
Thanks @Xuanwo. The format clarification is in 9c5b510:
The legacy inference guard is already fixed upstream by 818bfee. In #8966, the added regression persists and reopens two matching segments plus a legacy/future-only segment, and checks routing groups, work counters and exact Top-10 results. Existing lifecycle tests now check reopened fingerprints after metric replacement, remap, retrain, rebalance and merge against the actual final model. Verification: protobuf generation and Old/new runtime interoperability remains unverified: attempts to dispatch the existing |
Summary
VectorIndexDetails.coarse_quantizer_fingerprint(field 10): a 32-byte BLAKE3 identity of the final IVF coarse-routing state.Noneinitializers needed to compile. This PR does not generate fingerprints or change query execution.Compatibility
Old readers ignore the optional field. Readers implementing routing reuse treat missing or malformed identities as independent segments. Existing indices need no migration or rewrite. The identity does not assert quantization compatibility or authorize physical merging by itself.
Related work
Implementation: #8966. The implementation PR is stacked on this format branch and should be retargeted to
mainafter this PR merges.Discussion: #8965
Validation
--all --tests --benches -- -D warnings) passed on the combined format-and-implementation stack.This is a persisted-format proposal and requires the repository's format-specification vote before merging.