We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug: The "Data Query" cannot apply numeric key for JSON field as filter expression
Steps to reproduce:
import random import time from pymilvus import ( connections, FieldSchema, CollectionSchema, DataType, Collection, utility, ) connections.connect(host='localhost', port='19530') print(utility.get_server_version()) collection_name = "test" dim = 1536 metric_type = "L2" # create collection id_field = FieldSchema(name="id", dtype=DataType.INT64, is_primary=True, auto_id=False,) vector_field = FieldSchema(name="vector", dtype = DataType.FLOAT_VECTOR, dim=dim) name_field = FieldSchema(name="name", dtype = DataType.JSON) schema = CollectionSchema(fields=[id_field, vector_field, name_field]) if utility.has_collection(collection_name): utility.drop_collection(collection_name) collection = Collection(name=collection_name, schema=schema) print(f"Collection '{collection_name}' created") for i in range(10000): collection.insert({"id": i, "vector": [random.random() for _ in range(dim)], "name": {f"{i}": True, f"{i+1}": False}}) if i%100==0: print("insert", i) collection.flush() print(collection.num_entities) index_params = { 'metric_type': metric_type, 'index_type': "FLAT", 'params': {}, } collection.create_index(field_name="vector", index_params=index_params) print("index created") collection.load() print("collection loaded") print("query...") collection = Collection(collection_name) res = collection.query(expr='name["222"] == True', consistency_level="Strong", output_fields=["name"]) for r in res: print(r)
Attu version: Milvus v2.3.3 Attu v2.3.4
Attu version:
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Describe the bug:
The "Data Query" cannot apply numeric key for JSON field as filter expression
Steps to reproduce:
Attu version:
Milvus v2.3.3
Attu v2.3.4
Attu version:
The text was updated successfully, but these errors were encountered: