From 04d118f1639d611028a792c21475dc539f10bceb Mon Sep 17 00:00:00 2001 From: Congqi Xia Date: Mon, 19 Aug 2024 15:25:15 +0800 Subject: [PATCH] Fix misspell Signed-off-by: Congqi Xia --- client/insert.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/insert.go b/client/insert.go index fe489408..99436a8f 100644 --- a/client/insert.go +++ b/client/insert.go @@ -103,17 +103,17 @@ func (c *GrpcClient) processInsertColumns(colSchema *entity.Schema, columns ...e } } - // check if explictly passing dynamic json column + // check if explicitly passing dynamic json column if column.Type() == entity.FieldTypeJSON { jsonColumn, ok := column.(*entity.ColumnJSONBytes) if ok && jsonColumn.IsDynamic() { // schema not match if !isDynamic { - return nil, 0, fmt.Errorf("collection %s is not dynamic but insert data contains explict dynamic json field %s", colSchema.CollectionName, column.Name()) + return nil, 0, fmt.Errorf("collection %s is not dynamic but insert data contains explicit dynamic json field %s", colSchema.CollectionName, column.Name()) } // multiple dynamic column if hasExplictDynamicColumn { - return nil, 0, fmt.Errorf("multiple explict dynamic json column found") + return nil, 0, fmt.Errorf("multiple explicit dynamic json column found") } hasExplictDynamicColumn = true expDynColumn = column @@ -164,7 +164,7 @@ func (c *GrpcClient) processInsertColumns(colSchema *entity.Schema, columns ...e } if len(dynamicColumns) > 0 { if hasExplictDynamicColumn { - return nil, 0, fmt.Errorf("dynamic fields & explict dynamic column cannot be inserted at same time") + return nil, 0, fmt.Errorf("dynamic fields & explicit dynamic column cannot be inserted at same time") } // use empty column name here col, err := c.mergeDynamicColumns("", rowSize, dynamicColumns)