diff --git a/internal/proxy/task_index.go b/internal/proxy/task_index.go index 5afeae1a17..29f28c154a 100644 --- a/internal/proxy/task_index.go +++ b/internal/proxy/task_index.go @@ -619,13 +619,13 @@ func (t *alterIndexTask) PreExecute(ctx context.Context) error { if len(t.req.GetExtraParams()) > 0 { for _, param := range t.req.GetExtraParams() { if !indexparams.IsConfigableIndexParam(param.GetKey()) { - return merr.WrapErrParameterInvalidMsg("%s is not a configable index proptery", param.GetKey()) + return merr.WrapErrParameterInvalidMsg("%s is not a configable index property", param.GetKey()) } } } else if len(t.req.GetDeleteKeys()) > 0 { for _, param := range t.req.GetDeleteKeys() { if !indexparams.IsConfigableIndexParam(param) { - return merr.WrapErrParameterInvalidMsg("%s is not a configable index proptery", param) + return merr.WrapErrParameterInvalidMsg("%s is not a configable index property", param) } } } diff --git a/tests/python_client/common/code_mapping.py b/tests/python_client/common/code_mapping.py index 337fffa076..d1d9abca14 100644 --- a/tests/python_client/common/code_mapping.py +++ b/tests/python_client/common/code_mapping.py @@ -40,7 +40,7 @@ class IndexErrorMessage(ExceptionsMessage): CheckBitmapIndex = "bitmap index are only supported on bool, int, string" CheckBitmapOnPK = "create bitmap index on primary key not supported" CheckBitmapCardinality = "failed to check bitmap cardinality limit, should be larger than 0 and smaller than 1000" - NotConfigable = "{0} is not a configable index proptery" + NotConfigable = "{0} is not a configable index property" InvalidOffsetCache = "invalid offset cache index params" OneIndexPerField = "at most one distinct index is allowed per field" AlterOnLoadedCollection = "can't alter index on loaded collection, please release the collection first" diff --git a/tests/python_client/milvus_client/test_milvus_client_alter.py b/tests/python_client/milvus_client/test_milvus_client_alter.py index 7af1eb1559..7e883e0afe 100644 --- a/tests/python_client/milvus_client/test_milvus_client_alter.py +++ b/tests/python_client/milvus_client/test_milvus_client_alter.py @@ -85,7 +85,7 @@ class TestMilvusClientAlterIndex(TestMilvusClientV2Base): for p in properties.items(): if p[0] not in ["mmap.enabled"]: log.debug(f"try to alter index property: {p[0]}") - error = {ct.err_code: 1, ct.err_msg: f"{p[0]} is not a configable index proptery"} + error = {ct.err_code: 1, ct.err_msg: f"{p[0]} is not a configable index property"} new_value = p[1] + 1 if isinstance(p[1], numbers.Number) else "new_value" self.alter_index_properties(client, collection_name, vector_field_name, properties={p[0]: new_value}, diff --git a/tests/python_client/testcases/test_index.py b/tests/python_client/testcases/test_index.py index 66afe37830..3502f6de1c 100644 --- a/tests/python_client/testcases/test_index.py +++ b/tests/python_client/testcases/test_index.py @@ -1428,7 +1428,7 @@ class TestIndexInvalid(TestcaseBase): collection_w.alter_index(ct.default_index_name, {"error_param_key": 123}, check_task=CheckTasks.err_res, check_items={ct.err_code: 1100, - ct.err_msg: "error_param_key is not a configable index proptery:"}) + ct.err_msg: "error_param_key is not a configable index property:"}) collection_w.alter_index(ct.default_index_name, ["error_param_type"], check_task=CheckTasks.err_res, check_items={ct.err_code: 1,