Skip to content

fix: reject combined-fields queries on legacy Enterprise servers - #5343

Merged
Xuanwo merged 1 commit into
lancedb:mainfrom
karthiksenv:codex/fix-5340-legacy-combined-fields
Dec 2, 2026
Merged

Xuanwo merged 1 commit into
lancedb:mainfrom
karthiksenv:codex/fix-5340-legacy-combined-fields

Conversation

@karthiksenv

Copy link
Copy Markdown
Contributor

Closes #5340.

Reject CombinedFields before sending an FTS query to a LanceDB Enterprise server older than 0.3.0. The check follows all Boolean clauses and both sides of a Boost query. The 0.3.0 regression test also checks that unequal column weights and the AND operator reach the server.

Reproduced with Python SDK 0.42.1 against a mock 0.2.0 server. Both searches returned HTTP 200. The top-level query lost its weights and operator, and the nested Boolean query sent an empty string. The same searches preserved the structured query on 0.3.0.

@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 pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@github-actions github-actions Bot added bug Something isn't working Rust Rust related issues labels Dec 2, 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: approve.

Rejecting combined-fields queries at the legacy serialization boundary prevents silent changes to matching and ranking, including nested Boolean and Boost queries. Supported servers retain the structured query, column weights, and operator.

Isolated serialization checks passed. The repository tests could not start here because the checkout requires Rust 1.98 and this environment provides 1.97.

@lancedb-gatekeeper lancedb-gatekeeper Bot added the K-approved Latest Gatekeeper recommendation permits acceptance. label Dec 2, 2026
@Xuanwo
Xuanwo merged commit 3afd0ce into lancedb:main Dec 2, 2026
47 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working K-approved Latest Gatekeeper recommendation permits acceptance. Rust Rust related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remote FTS silently downgrades CombinedFields queries on pre-0.3.0 Enterprise servers

2 participants