Skip to content

fix(index): complete HnswQueryParams in the prefix graph test - #11418

Merged
wkalt merged 1 commit into
mainfrom
xuanwo/fix-ivf-hnsw-test-scoring
Nov 24, 2026
Merged

wkalt merged 1 commit into
mainfrom
xuanwo/fix-ivf-hnsw-test-scoring

Conversation

@Xuanwo

@Xuanwo Xuanwo commented Nov 23, 2026

Copy link
Copy Markdown
Member

Summary

HnswQueryParams gained rq_graph_scoring in #10910. The prefix-graph test added in #11141 constructs the struct without that field, so every Rust test build of main fails:

error[E0063]: missing field `rq_graph_scoring` in initializer of `HnswQueryParams`
   --> rust/lance/src/index/vector/ivf/v2/tests.rs:6553:18

Add it with Default::default(), as the other fixtures do. The fixture is an IVF_HNSW_SQ partition, so the default (MultiBit) scoring is the normal path; the test only asserts that a graph covering a prefix of its storage loads and is searchable. Test-only change, no production behavior.

Test

  • cargo test --profile ci -p lance --lib -- index::vector::ivf::v2::tests::test_hnsw_prefix_graph_loads_without_dropped_rows --exact: 1 passed.
  • cargo fmt --all -- --check: clean.

HnswQueryParams gained rq_graph_scoring in #10910. The prefix-graph test added in #11141 constructs the struct without that field, so Rust test builds of main fail with E0063.

Use the same Default::default() as the other fixtures. This test exercises an IVF_HNSW_SQ partition, so the default multi-bit scoring is the normal path; it only asserts that a graph covering a prefix of its storage loads and is searchable.

@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 bug Something isn't working label Nov 23, 2026

@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 missing-field failure is fixed without weakening the prefix-graph regression coverage. No blocking issues found.

@wkalt
wkalt merged commit cd45844 into main Nov 24, 2026
42 checks passed
@wkalt
wkalt deleted the xuanwo/fix-ivf-hnsw-test-scoring branch November 24, 2026 03:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working K-approved Latest Gatekeeper recommendation permits acceptance.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants