Fix field_name spell error (#26718)

Signed-off-by: Writer-X <1256866856@qq.com>
This commit is contained in:
Xu Tong 2023-08-31 11:39:02 +08:00 committed by GitHub
parent f468a64019
commit 5f08e3a72b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -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) {

View File

@ -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) {

View File

@ -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):