Repository navigation
test(index): cover merging a legacy MinHash segment without stable row ids - #11019
Merged
Merged
Conversation
…w ids Parametrize the legacy MinHash merge test over enable_stable_row_ids: with stable row ids the merge is refused; without them the stored ids equal row addresses, so the merge succeeds, writes the current version, and keeps query results. Update the stale comments that predate moving the guard to the caller. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Y3hhWhSPAggJTKAWR32ivc
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.
westonpace
commented
Nov 12, 2026
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Y3hhWhSPAggJTKAWR32ivc
wjones127
approved these changes
Nov 12, 2026
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
This follows up on #9858 and addresses the two review comments posted just before it merged:
test_merge_rejects_legacy_row_id_domain_segmentis nowtest_merge_legacy_row_id_domain_segment, parametrized overenable_stable_row_ids(comment).true: merging the hand-built v0 segment is still refused withInvalidInput, and queries are unchanged.false: the v0 segment's stored ids are addresses, which is what a pre-migration segment holds without stable row ids. The merge succeeds and writesindex_version == MINHASH_LSH_INDEX_VERSION, and after commitsearch_idsreturns the same rows as before.merge_segments.build_per_segment_filtersin MinHashmerge_segmentsnow says a v0 segment can reach it without stable row ids, where ids equal addresses (comment).Generated by Claude Code