Skip to content

Commit

Permalink
Fix a bug of bulkinsert dynamic schema (#24405)
Browse files Browse the repository at this point in the history
Signed-off-by: yhmo <yihua.mo@zilliz.com>
  • Loading branch information
yhmo committed May 30, 2023
1 parent b09e7ae commit 1a0ca8e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions internal/util/importutil/import_wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,11 @@ func NewImportWrapper(ctx context.Context, collectionSchema *schemapb.Collection

// ignore the RowID field and Timestamp field
realSchema := &schemapb.CollectionSchema{
Name: collectionSchema.GetName(),
Description: collectionSchema.GetDescription(),
AutoID: collectionSchema.GetAutoID(),
Fields: make([]*schemapb.FieldSchema, 0),
Name: collectionSchema.GetName(),
Description: collectionSchema.GetDescription(),
AutoID: collectionSchema.GetAutoID(),
Fields: make([]*schemapb.FieldSchema, 0),
EnableDynamicField: collectionSchema.GetEnableDynamicField(),
}
for i := 0; i < len(collectionSchema.Fields); i++ {
schema := collectionSchema.Fields[i]
Expand Down

0 comments on commit 1a0ca8e

Please sign in to comment.