From 1a0ca8e2e8ea69b36d558a0cb579c33cd7927f54 Mon Sep 17 00:00:00 2001 From: groot Date: Thu, 25 May 2023 18:17:28 +0800 Subject: [PATCH] Fix a bug of bulkinsert dynamic schema (#24405) Signed-off-by: yhmo --- internal/util/importutil/import_wrapper.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/internal/util/importutil/import_wrapper.go b/internal/util/importutil/import_wrapper.go index 31365cc62d8d3..5384b23aa9fcc 100644 --- a/internal/util/importutil/import_wrapper.go +++ b/internal/util/importutil/import_wrapper.go @@ -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]