mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-06 09:08:43 +08:00
fix: Use proto.Equal to compare default value of field (#43813)
Related to #43796 --------- Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
This commit is contained in:
parent
ebd517c514
commit
1ced768337
@ -1,6 +1,8 @@
|
||||
package model
|
||||
|
||||
import (
|
||||
"google.golang.org/protobuf/proto"
|
||||
|
||||
"github.com/milvus-io/milvus-proto/go-api/v2/commonpb"
|
||||
"github.com/milvus-io/milvus-proto/go-api/v2/schemapb"
|
||||
"github.com/milvus-io/milvus/pkg/v2/common"
|
||||
@ -75,7 +77,7 @@ func (f *Field) Equal(other Field) bool {
|
||||
f.IsPartitionKey == other.IsPartitionKey &&
|
||||
f.IsDynamic == other.IsDynamic &&
|
||||
f.IsClusteringKey == other.IsClusteringKey &&
|
||||
f.DefaultValue == other.DefaultValue &&
|
||||
proto.Equal(f.DefaultValue, other.DefaultValue) &&
|
||||
f.ElementType == other.ElementType &&
|
||||
f.IsFunctionOutput == other.IsFunctionOutput &&
|
||||
f.Nullable == other.Nullable
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user