Repository navigation
fix(scan)!: preserve list structure reads across plan transport - #10766
Merged
Merged
Conversation
Carry per-field structural read modes in FilteredReadOptionsProto so remote list length and nonempty queries avoid element payloads. Preserve executor reader defaults without leaking structural demand between queries. BREAKING CHANGE: FilteredReadOptionsProto gains list_structure; exhaustive Rust struct literals must initialize it, and Eq/Hash are no longer derived. The execution wire format remains backward compatible.
BubbleCal
marked this pull request as ready for review
November 5, 2026 18:14
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.
Xuanwo
approved these changes
Nov 5, 2026
Xuanwo
pushed a commit
to lancedb/lancedb
that referenced
this pull request
Nov 6, 2026
Downstream workspaces adopting Lance 15.0.0-beta.11 currently also resolve beta.10 because the SDK pins every Lance crate exactly. This produces incompatible Lance types across the SDK and the consumer. Update the workspace pins and lockfile to the published [v15.0.0-beta.11](https://github.com/lance-format/lance/releases/tag/v15.0.0-beta.11). This release includes payload-free list length reads and preserves those read modes across serialized plans (lance-format/lance#10759, lance-format/lance#10766). Existing feature flags and unrelated locked packages are unchanged. The release also includes the metric/k-dependent search-effort calibration from lance-format/lance#10695. Update the Node and Python execution tests to its exact probe budgets (for example, effort 0.25 with L2, k=8 and Auto=6 now probes 4 partitions), and cover the 0.1 tier. Recall, caller bounds and probe-precedence assertions remain in place. Validation: - `cargo fmt --all --check` - `cargo clippy --quiet --features remote --tests --examples` - Downstream metadata fixture with SDK source and the released Lance beta.11 path overrides resolves exactly one Lance version. - `cargo test --quiet --features remote --tests`: 2,271 passed, 0 failed, 79 existing ignored tests. - Node native/TypeScript build, lint and API documentation generation passed; 41 query tests passed. - Python native binding build and package Ruff checks passed; 208 query tests passed, 1 slow test deselected, 5 existing deprecation warnings. - Rust results remain applicable: the follow-up changes only binding tests, with product source and dependency graph unchanged from the tested dependency update. Repository-root Ruff currently reports 59 lint findings and 6 formatting failures in untouched documentation snippets. Their blobs match the PR base; the changed Python test and the entire Python package pass lint/format checks.
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.
Remote FilteredRead plans dropped the list-structure demand introduced by #10759. After serialization, length and nonempty queries returned correct results but fetched element payloads again. Carry the field IDs and Length/NonEmpty modes through the execution protobuf, reject invalid modes, and keep the settings local to the read while preserving executor reader defaults.
Validation: 42 filtered-read protobuf tests pass, including four multi-fragment serialized execution tests that fail on the parent because actual requests overlap image payloads. They cover both planning modes, NULL/empty lists and elements, and ordinary reads after structural requests. Mode/default/invalid-input cases, generated-protobuf consistency, proto comment lint, formatting and full workspace strict Clippy with Substrait also pass.
This is an execution-wire change, not a persisted-format change. Old executors can ignore the new field and preserve results while losing the optimization. Generated Rust
FilteredReadOptionsProtogainslist_structureand no longer derivesEq/Hash; exhaustive struct literals must adapt.This is a prerequisite for Sophon adoption. No production rollout or new performance claim is included.