Open dhilazo opened 8 months ago
/assign @xiaocai2333
maybe we can support it real quick
I think there is some mistakes in the doc. I will double check it.
should be a easy fix to that if == is support
confirmed that right now Milvus only supports == and != for array_length, so the doc should be updated. @dhilazo sorry for the inconvenience, and @xiaocai2333 is working on support of more expression such as >, < .
/unassign
Thank you very much for your quick responses and support! ❤️
/assign @elstic please help to add some tests for the verification /unassign @xiaocai2333
Is there an existing issue for this?
Environment
Current Behavior
Based on the documentation for array limits there are a set of boolean operations that can be done with an array field, like
array_length(int_array) > 10
(extracted from the documentation). However, when working with arrays only==
operands work.For example with this FieldSchema defined with pymilvus:
FieldSchema(name="test", dtype=DataType.ARRAY, element_type=DataType.VARCHAR, max_capacity=100, max_length=65535)
The
array_length(test) > 2
expression returnsGreaterThan is not supported in execution backend
.Expected Behavior
It should work just like it says in the documentation.
Steps To Reproduce
Milvus Log
pymilvus.exceptions.MilvusException: <MilvusException: (code=65535, message=cannot parse expression: array_length(test) > 2, error: GreaterThan is not supported in execution backend)>
Anything else?
No response