Skip to content

fix(scan)!: preserve list structure reads across plan transport - #10766

Merged
BubbleCal merged 1 commit into
mainfrom
yang/t200-list-structure-wire
Nov 5, 2026
Merged

BubbleCal merged 1 commit into
mainfrom
yang/t200-list-structure-wire

Conversation

@BubbleCal

Copy link
Copy Markdown
Contributor

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 FilteredReadOptionsProto gains list_structure and no longer derives Eq/Hash; exhaustive struct literals must adapt.

This is a prerequisite for Sophon adoption. No production rollout or new performance claim is included.

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.
@github-actions github-actions Bot added bug Something isn't working breaking-change labels Nov 5, 2026
@BubbleCal
BubbleCal marked this pull request as ready for review November 5, 2026 18:14

@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.

@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.

Serializing the per-read structural demand addresses the remote payload-read regression while preserving ordinary reads and executor-local reader settings.

@lance-gatekeeper lance-gatekeeper Bot added the K-approved Latest Gatekeeper recommendation permits acceptance. label Nov 5, 2026
@BubbleCal
BubbleCal merged commit fcb913a into main Nov 5, 2026
45 checks passed
@BubbleCal
BubbleCal deleted the yang/t200-list-structure-wire branch November 5, 2026 18:42
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking-change 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