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]