Repository navigation
Conversation
…-source-integration-20261114
Xuanwo
approved these changes
Nov 14, 2026
Contributor
Author
|
Thank you @Xuanwo |
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.
Closes #10854.
The value is only the initial capacity of the returned
Vec, so it now usessaturating_sub. The returned row ids are unchanged: the requested fragments' row ids minus the blocked ones. Draft #8566 has the same one-line change without a test, so whichever lands second can drop that hunk.How was this patch tested
test_not_equal_filter_on_fragment_subset_legacy_stable_row_idswrites 100 rows in 10 fragments with legacy storage and stable row ids, builds a BTree index, and scans fragment 0 withc != 0. It checks that the plan usesMaterializeIndexand that the scan returns the fragment's 5 matching rows. Without this change it panics.Integration validation
Merged current
mainatcdefd7edfc71f91368898d1fec6da789c5f80f5cinto the PR branch; the diff againstmainremains the two files above (+45/-2). On the merged tree:cargo test -p lance --locked --profile ci test_not_equal_filter_on_fragment_subset_legacy_stable_row_ids— 1 passed.cargo test -p lance --lib --locked --profile ci io::exec::scalar_index::tests— 13 passed.cargo test -p lance --lib --locked --profile ci test_btree_nullable_filters_match_unindexed_scan— 1 passed.cargo clippy --profile ci --all --tests --benches --locked -- -D warnings— clean.cargo fmt --all— clean.The
Closes #10854scope stays the legacy-storage, stable-row-id, fragment-subset negated-index-filter panic described in the issue; the saturating subtraction only protects the capacity hint, and row ids are still filtered by!block_list.contains.