From 708c724cccb4f1389b5505f009db2f635e2c3e4a Mon Sep 17 00:00:00 2001 From: smellthemoon <64083300+smellthemoon@users.noreply.github.com> Date: Tue, 30 May 2023 14:51:28 +0800 Subject: [PATCH] fix default value store unknown type (#24477) Signed-off-by: lixinguo Co-authored-by: lixinguo --- internal/metastore/model/field.go | 1 + internal/proxy/task.go | 1 + 2 files changed, 2 insertions(+) diff --git a/internal/metastore/model/field.go b/internal/metastore/model/field.go index 493f6c773..4f65874e6 100644 --- a/internal/metastore/model/field.go +++ b/internal/metastore/model/field.go @@ -126,6 +126,7 @@ func UnmarshalFieldModel(fieldSchema *schemapb.FieldSchema) *Field { IndexParams: fieldSchema.IndexParams, AutoID: fieldSchema.AutoID, IsDynamic: fieldSchema.IsDynamic, + DefaultValue: fieldSchema.DefaultValue, } } diff --git a/internal/proxy/task.go b/internal/proxy/task.go index 51f165fc8..1ed06de06 100644 --- a/internal/proxy/task.go +++ b/internal/proxy/task.go @@ -503,6 +503,7 @@ func (dct *describeCollectionTask) Execute(ctx context.Context) error { TypeParams: field.TypeParams, IndexParams: field.IndexParams, IsDynamic: field.IsDynamic, + DefaultValue: field.DefaultValue, }) } } -- GitLab