Skip to content

test(compat): install lance-namespace 0.13 for pylance >=14.0.0b10 - #9850

Merged
zhangyue19921010 merged 1 commit into
mainfrom
fix/compat-namespace-pin
Oct 10, 2026
Merged

zhangyue19921010 merged 1 commit into
mainfrom
fix/compat-namespace-pin

Conversation

@wjones127

Copy link
Copy Markdown
Contributor

Summary

#9822 bumped pylance's lance-namespace requirement to >=0.13.0,<0.14, first released in 14.0.0b10. The compat venv manager still installed lance-namespace>=0.11.1,<0.12 alongside it, so pip failed with ResolutionImpossible and every [14.0.0b10] compat test failed (run). This maps pylance >=14.0.0b10 to the 0.13 range.

Evidence

test_lance_namespace_dependency now covers 14.0.0b9 (0.11 range) and 14.0.0b10 (0.13 range).

Merge Risk

Door: two-way. Only test harness code changes.
Blast Radius: none. Only the compat tests are affected.

🤖 Generated with Claude Code

pylance 14.0.0b10 requires lance-namespace>=0.13.0,<0.14 (bumped in #9822),
so the compat venv's 0.11 pin made pip resolution fail.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added A-python Python bindings chore labels Oct 9, 2026
@wjones127
wjones127 marked this pull request as ready for review October 9, 2026 20:49

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

The cutoff matches the published beta 9 and beta 10 wheel requirements. Beta 10 installation now succeeds through the compatibility harness, and the existing release mappings remain covered.

@lance-gatekeeper lance-gatekeeper Bot added the K-approved Latest Gatekeeper recommendation permits acceptance. label Oct 9, 2026

@zhangyue19921010 zhangyue19921010 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

thanks~

@zhangyue19921010
zhangyue19921010 merged commit e85fab2 into main Oct 10, 2026
@zhangyue19921010
zhangyue19921010 deleted the fix/compat-namespace-pin branch October 10, 2026 02:50
BubbleCal pushed a commit that referenced this pull request Oct 10, 2026
…9850)

## Summary

#9822 bumped pylance's `lance-namespace` requirement to
`>=0.13.0,<0.14`, first released in 14.0.0b10. The compat venv manager
still installed `lance-namespace>=0.11.1,<0.12` alongside it, so pip
failed with `ResolutionImpossible` and every `[14.0.0b10]` compat test
failed
([run](https://github.com/lance-format/lance/actions/runs/37979490950/job/113988344868)).
This maps pylance >=14.0.0b10 to the 0.13 range.

## Evidence

`test_lance_namespace_dependency` now covers 14.0.0b9 (0.11 range) and
14.0.0b10 (0.13 range).

## Merge Risk

**Door:** two-way. Only test harness code changes.
**Blast Radius:** none. Only the compat tests are affected.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <[email protected]>
(cherry picked from commit e85fab2)
BubbleCal added a commit that referenced this pull request Oct 11, 2026
Distributed planners cannot replace the indexed work inside
`HybridCompoundQueryExec`, so an appended unindexed tail keeps the
entire indexed search on the query node.

Add `with_indexed_input` to accept a bounded, single-partition result
stream and its committed-corpus BM25 scorer. The hybrid node continues
to tokenize and score residual rows, then merges both arms with the
existing score/row-ID ordering and limit. With an external input, it
opens only the representative segment needed for the residual tokenizer.
Physical child replacement preserves the input and scorer; schema,
partition count, result cardinality and null checks enforce the input
contract.

The compatibility-test harness also includes the merged fix from #9850,
selecting `lance-namespace>=0.13.0,<0.14` for published
`pylance>=14.0.0b10` wheels.

Validation on AWS with the repository's Rust 1.98.1 toolchain:

- 343 FTS tests, two scanner compound tests and the new API doctest
pass. The seven new API tests cover native result parity, child
replacement and invalid input contracts.
- `cargo fmt --all -- --check` passes.
- Standard full-workspace Clippy reproduces 16 errors in unchanged
`lance-io` on both this change and its pinned baseline
`0fd26effc79c62c244a5baf92cdda06e301baf21`. The same full-workspace
check passes with command-line allowances for those two existing lints:
`-A clippy::single_range_in_vec_init -A clippy::implicit_clone`. No
source or repository lint settings were suppressed.
- The Sophon integration passes 45 focused regressions and 1,628
complete related tests, with one existing ignored test, plus scoped
Clippy on Rust 1.97.1 in release mode.

CI on `df070dd26a1079426fdfecabf5b4a28b99dd2393`: [compatibility
tests](https://github.com/lance-format/lance/actions/runs/38056207911/job/114226029145)
pass (421 passed, 10 skipped), as do Python lint and Rust Clippy/format
checks. The compatibility fix changes only two Python test-harness
files; Rust source and Cargo files are unchanged from the validated API
commit.

The API change is based on Sophon's existing Lance pin and adds no
storage or wire-format changes.

---------

Co-authored-by: Yang Cen <[email protected]>
Co-authored-by: Will Jones <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
wjones127 pushed a commit that referenced this pull request Oct 19, 2026
The planner correction for #9772 has landed on `main` through #9789:
lower-bound index results retain candidates that still need predicate
evaluation. This PR adds regression coverage for NGram needles whose
trigrams are all removed by tokenization.

Compare indexed and unindexed results for punctuation, Unicode, empty
strings, and nulls across three fragments and both row-ID modes. Extend
the lower-bound scan test with empty guaranteed sets and partial
limit/offset results.

The merged base includes #9850, which corrects the compatibility
environment's namespace dependency for `pylance>=14.0.0b10`.

Validation:

- Six punctuation cases failed on the original implementation and pass
with the planner correction.
- `cargo test -p lance --profile ci test_ngram --lib`: 20 passed.
- `cargo test -p lance --profile ci test_not_or_zone_map --lib`: 8
passed.
- `cargo test -p lance --profile ci io::exec::filtered_read::tests --lib
-- --test-threads=1`: 141 passed.
- `cargo fmt --all`: passed.
- `cargo clippy --all --tests --benches -- -D warnings`: passed.
- `uv run pytest --run-compat python/tests/compat/test_venv_manager.py`:
14 passed.
- `uv run make lint`: passed (Ruff, type checking, Rust formatting, and
binding Clippy).
- `make build` from `python/`: passed.
- Beta dependency dry-run: `pylance==14.0.0b10` resolves with
`lance-namespace>=0.13.0,<0.14`.

The filtered-read suite runs serially to avoid interference between
shared tracing counters.

Fixes #9772

<!-- lance-gatekeeper-fix:v1 agent=9fb12c67db5d937ba8c02cbd14ef1f66
generation=1 -->

Co-authored-by: Gatefixer <312823363+lance-gatefixer[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-python Python bindings chore K-approved Latest Gatekeeper recommendation permits acceptance.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants