milvus-io/milvus

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

Open

#24.490 aperta il 29 mag 2023

Vedi su GitHub
 (5 commenti) (0 reazioni) (1 assegnatario)Go (4000 fork)batch import
good first issuekind/feature

Metriche repository

Star
 (44.298 star)
Metriche merge PR
 (Merge medio 7g) (314 PR mergiate in 30 g)

Descrizione

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

Guida contributor