Skip to content

docs(index): document public API of LogicalScalarIndex#6804

Open
westonpace wants to merge 1 commit into
lance-format:mainfrom
westonpace:docs/document-logical-index
Open

docs(index): document public API of LogicalScalarIndex#6804
westonpace wants to merge 1 commit into
lance-format:mainfrom
westonpace:docs/document-logical-index

Conversation

@westonpace
Copy link
Copy Markdown
Member

Add rustdoc to the LogicalScalarIndex struct and the two public loader functions (open_named_scalar_index, scalar_index_fragment_bitmap), covering when the wrapper is used, the same-index-type constraint, how SearchResult precision is combined across segments, and the read-only remap/update behavior.

Add rustdoc to the LogicalScalarIndex struct and the two public loader
functions (open_named_scalar_index, scalar_index_fragment_bitmap),
covering when the wrapper is used, the same-index-type constraint, how
SearchResult precision is combined across segments, and the read-only
remap/update behavior.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown

@claude claude Bot left a comment

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 the documentation Improvements or additions to documentation label May 15, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented May 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@westonpace
Copy link
Copy Markdown
Member Author

@claude review once

Copy link
Copy Markdown

@claude claude Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM — pure rustdoc additions, no logic changes.

Extended reasoning...

Overview

This PR adds rustdoc comments to three public items in rust/lance/src/index/scalar_logical.rs: the LogicalScalarIndex struct and the two public loader functions (open_named_scalar_index, scalar_index_fragment_bitmap). No code logic, signatures, or behavior changes.

Security risks

None. Documentation-only change with no impact on runtime behavior, data handling, or trust boundaries.

Level of scrutiny

Minimal scrutiny required. The diff is entirely /// doc comments above existing items. I spot-checked that the documented behavior matches the actual code: the same-index-type constraint in try_new, the SearchResult precision combination logic in combine_search_results (Exact ∪ Exact = Exact; any AtMost → AtMost; any AtLeast → AtLeast; AtMost+AtLeast errors), and the read-only remap/update returning errors — all match the doc text accurately.

Other factors

The PR author (westonpace) explicitly requested a review. The bug hunting system found no issues, and Codecov reports full coverage on modified lines (trivially true for doc-only changes). Safe to approve without human review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant