Skip to content

doc: note that multi-field arithmetic filter expressions are not supported#3469

Open
korbonits wants to merge 1 commit into
milvus-io:v2.6.xfrom
korbonits:doc/arithmetic-multi-field-limitation-v2.6
Open

doc: note that multi-field arithmetic filter expressions are not supported#3469
korbonits wants to merge 1 commit into
milvus-io:v2.6.xfrom
korbonits:doc/arithmetic-multi-field-limitation-v2.6

Conversation

@korbonits
Copy link
Copy Markdown

Summary

  • The arithmetic operators section lists +, -, *, /, %, ** with examples, but never mentions that expressions combining two fields (e.g. price * quantity > 100) are not supported.
  • Users attempting this pattern hit a confusing server-side error: not supported to do arithmetic operations between multiple fields: invalid parameter (tracked in [Bug]: not supported to do arithmetic operations between multiple fields milvus#39629).
  • Add an alert note immediately after the arithmetic examples clarifying the single-field-plus-constant constraint and suggesting the pre-computed field workaround.

Test plan

  • Rendered diff looks correct (<div class="alert note"> pattern matches existing usage throughout the docs)
  • No other files changed

🤖 Generated with Claude Code

Arithmetic filter expressions only work between a single field and a
constant (e.g. `price ** 2 > 1000`). Expressions combining two fields
(e.g. `price * quantity > 100`) are not currently supported and return
an error. Users have repeatedly hit this because the docs listed all
arithmetic operators without mentioning this constraint.

Add an alert note after the arithmetic examples pointing out the
limitation and suggesting storing pre-computed values as a workaround.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Alex Korbonits <alex@korbonits.com>
@sre-ci-robot
Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: korbonits

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@sre-ci-robot
Copy link
Copy Markdown

Welcome @korbonits! It looks like this is your first PR to milvus-io/milvus-docs 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants