Repository navigation
fix(scanner): align row offset statistics with output schema - #10030
Merged
Merged
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.
LuQQiu
approved these changes
Oct 15, 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.
ANN scans projecting
_rowoffsetwith default distance ordering could panic during physical optimization.AddRowOffsetExecappended an output field but returned only the input columns’ statistics, causing DataFusion’s projection statistics to index past the end.Append unknown statistics for
_rowoffsetand clear the input-only byte count while preserving the row count and existing column statistics. This is a focused fix for the statistics issue also covered by #8566.Regression coverage includes known and unknown statistics, global and per-partition statistics, and three-fragment ANN queries with deletions, stable and address-style row IDs, and both offset-only and ID-plus-offset projections. ANN results assert exact neighbors, offsets, distances, and recall of 1.0.
Validation on macOS arm64 with Rust 1.98.1 and the repository
ciprofile:cargo test --profile ci --locked -p lance --lib row_offset: 11 passed.cargo test --profile ci --locked -p lance --lib io::exec::rowids::test: 10 passed.cargo clippy --profile ci --locked --all --tests --benches -- -D warningspassed.cargo fmt --all -- --checkandgit diff --checkpassed.