mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
Update test case of output empty search field (#21231)
Signed-off-by: nico <cheng.yuan@zilliz.com> Signed-off-by: nico <cheng.yuan@zilliz.com>
This commit is contained in:
parent
ce3e0fcf9e
commit
28b5771c2c
@ -536,7 +536,7 @@ class TestQueryParams(TestcaseBase):
|
||||
method: query with output field=None, field=[]
|
||||
expected: return primary field
|
||||
"""
|
||||
collection_w, vectors = self.init_collection_general(prefix, insert_data=True)[0:2]
|
||||
collection_w = self.init_collection_general(prefix, insert_data=True)[0]
|
||||
for fields in [None, []]:
|
||||
res, _ = collection_w.query(default_term_expr, output_fields=fields)
|
||||
assert res[0].keys() == {ct.default_int64_field_name}
|
||||
|
||||
@ -2371,6 +2371,7 @@ class TestCollectionSearch(TestcaseBase):
|
||||
res.done()
|
||||
res = res.result()
|
||||
assert len(res[0][0].entity._row_data) == 0
|
||||
assert res[0][0].entity.fields == []
|
||||
|
||||
@pytest.mark.tags(CaseLabel.L1)
|
||||
def test_search_with_output_field(self, auto_id, _async):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user