mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-08 01:58:34 +08:00
[skip ci] Remove arguments equal to default (#12586)
Signed-off-by: ThreadDao <yufen.zong@zilliz.com>
This commit is contained in:
parent
5eeb3ba830
commit
2b6fe9ba81
@ -513,7 +513,7 @@ class TestInsertOperation(TestcaseBase):
|
|||||||
"""
|
"""
|
||||||
schema = cf.gen_default_collection_schema(auto_id=True)
|
schema = cf.gen_default_collection_schema(auto_id=True)
|
||||||
collection_w = self.init_collection_wrap(name=cf.gen_unique_str(prefix), schema=schema)
|
collection_w = self.init_collection_wrap(name=cf.gen_unique_str(prefix), schema=schema)
|
||||||
df = cf.gen_default_dataframe_data(ct.default_nb)
|
df = cf.gen_default_dataframe_data()
|
||||||
df.drop(ct.default_int64_field_name, axis=1, inplace=True)
|
df.drop(ct.default_int64_field_name, axis=1, inplace=True)
|
||||||
mutation_res, _ = collection_w.insert(data=df)
|
mutation_res, _ = collection_w.insert(data=df)
|
||||||
assert cf._check_primary_keys(mutation_res.primary_keys, ct.default_nb)
|
assert cf._check_primary_keys(mutation_res.primary_keys, ct.default_nb)
|
||||||
@ -535,7 +535,7 @@ class TestInsertOperation(TestcaseBase):
|
|||||||
c_name = cf.gen_unique_str(prefix)
|
c_name = cf.gen_unique_str(prefix)
|
||||||
schema = cf.gen_default_collection_schema(auto_id=True)
|
schema = cf.gen_default_collection_schema(auto_id=True)
|
||||||
collection_w = self.init_collection_wrap(name=c_name, schema=schema)
|
collection_w = self.init_collection_wrap(name=c_name, schema=schema)
|
||||||
df = cf.gen_default_dataframe_data(ct.default_nb)
|
df = cf.gen_default_dataframe_data()
|
||||||
df.drop(ct.default_int64_field_name, axis=1, inplace=True)
|
df.drop(ct.default_int64_field_name, axis=1, inplace=True)
|
||||||
mutation_res, _ = collection_w.insert(data=df)
|
mutation_res, _ = collection_w.insert(data=df)
|
||||||
assert cf._check_primary_keys(mutation_res.primary_keys, ct.default_nb)
|
assert cf._check_primary_keys(mutation_res.primary_keys, ct.default_nb)
|
||||||
@ -572,7 +572,7 @@ class TestInsertOperation(TestcaseBase):
|
|||||||
c_name = cf.gen_unique_str(prefix)
|
c_name = cf.gen_unique_str(prefix)
|
||||||
schema = cf.gen_default_collection_schema(auto_id=True)
|
schema = cf.gen_default_collection_schema(auto_id=True)
|
||||||
collection_w = self.init_collection_wrap(name=c_name, schema=schema)
|
collection_w = self.init_collection_wrap(name=c_name, schema=schema)
|
||||||
data = cf.gen_default_list_data(nb=ct.default_nb)
|
data = cf.gen_default_list_data()
|
||||||
mutation_res, _ = collection_w.insert(data=data[1:])
|
mutation_res, _ = collection_w.insert(data=data[1:])
|
||||||
assert mutation_res.insert_count == ct.default_nb
|
assert mutation_res.insert_count == ct.default_nb
|
||||||
assert cf._check_primary_keys(mutation_res.primary_keys, ct.default_nb)
|
assert cf._check_primary_keys(mutation_res.primary_keys, ct.default_nb)
|
||||||
@ -686,7 +686,7 @@ class TestInsertOperation(TestcaseBase):
|
|||||||
"""
|
"""
|
||||||
step = 120
|
step = 120
|
||||||
nb = 12000
|
nb = 12000
|
||||||
collection_w = self.init_collection_general(prefix, False, dim=dim)[0]
|
collection_w = self.init_collection_general(prefix, dim=dim)[0]
|
||||||
for _ in range(nb // step):
|
for _ in range(nb // step):
|
||||||
df = cf.gen_default_dataframe_data(step, dim)
|
df = cf.gen_default_dataframe_data(step, dim)
|
||||||
mutation_res, _ = collection_w.insert(data=df)
|
mutation_res, _ = collection_w.insert(data=df)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user