[Feature]: bitwise AND and OR operators in filter expression
#24,490 opened on May 29, 2023
Repository metrics
- Stars
- (44,298 stars)
- PR merge metrics
- (Avg merge 7d) (314 merged PRs in 30d)
Description
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