未验证 提交 f63df221 编写于 作者: Z zhuwenxing 提交者: GitHub

[skip ci]Add query operation in e2e test script (#10920)

Signed-off-by: Nzhuwenxing <wenxing.zhu@zilliz.com>
上级 20dac467
......@@ -82,8 +82,13 @@ def hello_milvus(host="127.0.0.1"):
print(hit, hit.entity.get("random_value"))
print("search latency = %.4fs" % (end_time - start_time))
# drop collection
# collection.drop()
#query
expr = "count in [2,4,6,8]"
output_fields = ["count", "random_value"]
res = collection.query(expr, output_fields)
sorted_res = sorted(res, key=lambda k: k['count'])
for r in sorted_res:
print(r)
import argparse
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册