From 5f08e3a72b112586f9beee6b2a00d156eedc9328 Mon Sep 17 00:00:00 2001 From: Xu Tong <80471801+Writer-X@users.noreply.github.com> Date: Thu, 31 Aug 2023 11:39:02 +0800 Subject: [PATCH] Fix field_name spell error (#26718) Signed-off-by: Writer-X <1256866856@qq.com> --- internal/distributed/proxy/service.go | 2 +- internal/proxy/impl.go | 2 +- tests/python_client/common/common_func.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/distributed/proxy/service.go b/internal/distributed/proxy/service.go index 3f59360de1..386784ca3c 100644 --- a/internal/distributed/proxy/service.go +++ b/internal/distributed/proxy/service.go @@ -801,7 +801,7 @@ func (s *Server) GetIndexStatistics(ctx context.Context, request *milvuspb.GetIn return s.proxy.GetIndexStatistics(ctx, request) } -// GetIndexBuildProgress gets index build progress with filed_name and index_name. +// GetIndexBuildProgress gets index build progress with field_name and index_name. // IndexRows is the num of indexed rows. And TotalRows is the total number of segment rows. // Deprecated: use DescribeIndex instead func (s *Server) GetIndexBuildProgress(ctx context.Context, request *milvuspb.GetIndexBuildProgressRequest) (*milvuspb.GetIndexBuildProgressResponse, error) { diff --git a/internal/proxy/impl.go b/internal/proxy/impl.go index 7913a6fbe0..0158472eeb 100644 --- a/internal/proxy/impl.go +++ b/internal/proxy/impl.go @@ -2094,7 +2094,7 @@ func (node *Proxy) DropIndex(ctx context.Context, request *milvuspb.DropIndexReq return dit.result, nil } -// GetIndexBuildProgress gets index build progress with filed_name and index_name. +// GetIndexBuildProgress gets index build progress with field_name and index_name. // IndexRows is the num of indexed rows. And TotalRows is the total number of segment rows. // Deprecated: use DescribeIndex instead func (node *Proxy) GetIndexBuildProgress(ctx context.Context, request *milvuspb.GetIndexBuildProgressRequest) (*milvuspb.GetIndexBuildProgressResponse, error) { diff --git a/tests/python_client/common/common_func.py b/tests/python_client/common/common_func.py index e0ebae972c..10b198e69e 100644 --- a/tests/python_client/common/common_func.py +++ b/tests/python_client/common/common_func.py @@ -730,7 +730,7 @@ def gen_npy_files_for_bulk_insert(data, schema, data_dir): if len(d) > 0: nb = len(d) dim = get_dim_by_schema(schema) - vec_filed_name = get_float_vec_field_name(schema) + vec_field_name = get_float_vec_field_name(schema) fields_name = [field.name for field in schema.fields] files = [] uuid_str = uuid.uuid4() @@ -741,7 +741,7 @@ def gen_npy_files_for_bulk_insert(data, schema, data_dir): # mkdir for npy file Path(data_source).parent.mkdir(parents=True, exist_ok=True) log.info(f"save file {data_source}") - if vec_filed_name in file: + if vec_field_name in file: log.info(f"generate {nb} vectors with dim {dim} for {data_source}") with NpyAppendArray(data_source, "wb") as npaa: for j in range(nb):