Skip to content

Milvus expr fails when using $meta JSON path with boolean OR and null check #3012

@xiaomayi-ant

Description

@xiaomayi-ant

Is there an existing issue for this?

  • I have searched the existing issues

What is your question?

Expression: ($meta["metadata"]["user_id"] == "UID" or $meta["metadata"]["user_id"] == null)
Error: failed to create query plan: cannot parse expression ... mismatched input 'OR' expecting ')'
Alternative tried: is null → mismatched input 'is' expecting ')'
Single equality (== "UID") works; failure occurs only when adding OR/null condition
Expected: expr should support boolean OR and null checks on $meta JSON fields
Repro: Collection.search(..., expr='($meta["metadata"]["user_id"] == "UID" or $meta["metadata"]["user_id"] == null)', output_fields=["$meta"])

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions