Skip to content

test(index): cover merging a legacy MinHash segment without stable row ids - #11019

Merged
westonpace merged 2 commits into
mainfrom
ccr-44c27d30-8chwg8
Nov 13, 2026
Merged

westonpace merged 2 commits into
mainfrom
ccr-44c27d30-8chwg8

Conversation

@westonpace

@westonpace westonpace commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Summary

This follows up on #9858 and addresses the two review comments posted just before it merged:

  • test_merge_rejects_legacy_row_id_domain_segment is now test_merge_legacy_row_id_domain_segment, parametrized over enable_stable_row_ids (comment).
    • true: merging the hand-built v0 segment is still refused with InvalidInput, 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 writes index_version == MINHASH_LSH_INDEX_VERSION, and after commit search_ids returns the same rows as before.
    • The test's doc comment now describes the stable-row-id condition instead of the "no compatibility path" wording, which predated moving the guard into merge_segments.
  • The comment on build_per_segment_filters in MinHash merge_segments now says a v0 segment can reach it without stable row ids, where ids equal addresses (comment).

Generated by Claude Code

…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

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

@github-actions github-actions Bot added the chore label Nov 12, 2026
@westonpace
westonpace requested a review from wjones127 November 12, 2026 22:52
@westonpace
westonpace merged commit fd42dce into main Nov 13, 2026
42 of 45 checks passed
@westonpace
westonpace deleted the ccr-44c27d30-8chwg8 branch November 13, 2026 02:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants