Repository navigation
chore: update lance dependency to v13.0.0-beta.17 - #4336
lancedb-robot wants to merge 1 commit into
Conversation
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.
There was a problem hiding this comment.
❌ 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, |
There was a problem hiding this comment.
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.
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.
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.