Skip to content

[Feature]: bitwise AND and OR operators in filter expression #24490

@topikachu

Description

@topikachu

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe.

We are going to use Milvus in our product. However, our product has document permission similar to Linux file permission.
We are going to use an integer to store the document permission in each bit within the document entity. And we want to use the bitwise operator to filter the permission against the user's.

Unfortunately, the bitwise operator is not available in Milvus now.

Describe the solution you'd like.

I hope there are bitwise operators in filter expression like other modern expression systems.

Describe an alternate solution.

If no such operator, we have to flatten the permission in multiple fields and use 'or' to check the permission. I can assume it hits the system query performance since the "or" operator is very difficult to optimize.

Anything else? (Additional Context)

No response

Metadata

Metadata

Assignees

Labels

good first issueGood for newcomerskind/featureIssues related to feature request from users

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions