Skip to content

chore: update lance dependency to v13.0.0-beta.17 - #4336

Closed
lancedb-robot wants to merge 1 commit into
mainfrom
codex/update-lance-13-0-0-beta-17
Closed

lancedb-robot wants to merge 1 commit into
mainfrom
codex/update-lance-13-0-0-beta-17

Conversation

@lancedb-robot

Copy link
Copy Markdown
Collaborator

Updates the Rust workspace dependencies, Cargo lockfile, and Java lance-core to Lance v13.0.0-beta.17.

Handles Lance's new combined-fields FTS query variant in the remote capability check and Rust bindings, with a regression test for the remote request payload; Python conversion reports that this query type is not yet supported.

Validation passed: workspace Clippy with all features and warnings denied, Rust formatting, the remote combined-fields regression test, 52 Python FTS tests, the Node build and 48 Node full-text tests, Node lint, and Python lint/format checks with the locked Ruff version.

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

@github-actions github-actions Bot added Python Python SDK Rust Rust related issues chore Small non-consequential change. Hidden from changelogs. labels Sep 27, 2026

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

❌ Gate recommendation: request changes.

The beta.17 alignment is coherent, but a combined-fields query on a supported older Cloud server silently becomes a legacy text query. Return an explicit unsupported error when the server cannot accept structured FTS, so the version update does not produce misleading retrieval results.

Please mark this PR with the breaking-change label.

fn fts_query_requires_document_granularity_support(query: &FtsQuery) -> bool {
match query {
// Combined-fields queries do not expose a document granularity option.
FtsQuery::CombinedFields(_) => false,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

A CombinedFieldsQuery against a server older than 0.3 reaches the legacy FTS branch, which sends only query.query() and columns(). That discards BM25F's blended scoring, per-column weights, and query operator, so the server can return plausible but semantically wrong results. Please reject this variant with NotSupported before legacy serialization; keep the structured path for servers that support it.

Reproducer

In the new test_query_combined_fields_uses_structured_fts, change the mock server version from 0.3.0 to 0.2.0 and run cargo test --quiet --features remote -p lancedb --lib test_query_combined_fields_uses_structured_fts. On this head, the assertion fails: body["full_text_query"]["query"] is the string "hello world" instead of the expected combined_fields object. The original test passes at 0.3.0.

@lancedb-gatekeeper lancedb-gatekeeper Bot added the K-changes Latest Gatekeeper recommendation requests changes. label Sep 27, 2026
Xuanwo added a commit that referenced this pull request Sep 29, 2026
Updates the Rust workspace dependencies, Cargo lockfile, and Java
`lance-core` to [Lance
v13.0.0-beta.18](https://github.com/lance-format/lance/releases/tag/v13.0.0-beta.18).
It includes lance-format/lance#9574, which bounds the memory an IVF
partition split uses when it re-reads raw vectors during
`optimize_indices`, and lance-format/lance#9582, which keeps the mTLS
REST namespace client on rustls.

Lance's new combined-fields FTS query variant (introduced by
v13.0.0-beta.17) is handled the same way as in #4336: the remote
capability check and Rust/Node bindings accept it, with a regression
test for the remote request payload, and the Python conversion reports
that this query type is not yet supported. This PR supersedes #4336.
@Xuanwo

Xuanwo commented Dec 2, 2026

Copy link
Copy Markdown
Member

Closing as superseded by #5327. The CombinedFields adaptation landed in #4339. The remaining CombinedFields regression on pre-0.3.0 Enterprise servers is tracked in #5340.

@Xuanwo Xuanwo closed this Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Small non-consequential change. Hidden from changelogs. K-changes Latest Gatekeeper recommendation requests changes. Python Python SDK Rust Rust related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants