[skip ci] Add comments for index test case (#8126)

Signed-off-by: Binbin Lv <binbin.lv@zilliz.com>
pull/8129/head
binbin 2021-09-17 14:05:54 +08:00 committed by GitHub
parent 6a456f347a
commit 02154f236b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -944,6 +944,11 @@ class TestIndexBase:
@pytest.mark.tags(CaseLabel.L0)
def test_create_PQ_without_nbits(self, connect, collection):
"""
target: test create PQ index
method: create PQ index without nbits
expected: create successfully
"""
PQ_index = {"index_type": "IVF_PQ", "params": {"nlist": 128, "m": 16}, "metric_type": "L2"}
result = connect.insert(collection, default_entities)
connect.create_index(collection, field_name, PQ_index)