Skip to content

Commit

Permalink
test: fix query result empty (milvus-io#30821)
Browse files Browse the repository at this point in the history
fix query result empty
pr:milvus-io#30351

Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
  • Loading branch information
zhuwenxing authored Feb 27, 2024
1 parent a74d4e8 commit 0fa1475
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@ def test_milvus_default(self, collection_name):
assert len(res[0]) <= topk

# query
term_expr = f'{int64_field_name} in [1, 2, 3, 4]'
term_expr = f'{int64_field_name} > offset'
t0 = time.time()
res, _ = collection_w.query(term_expr)
tt = time.time() - t0
log.info(f"assert query result {len(res)}: {tt}")
assert len(res) >= 4
assert len(res) > 0

0 comments on commit 0fa1475

Please sign in to comment.