diff --git a/pkg/util/merr/errors.go b/pkg/util/merr/errors.go index d5e9569663..d76e6e56c2 100644 --- a/pkg/util/merr/errors.go +++ b/pkg/util/merr/errors.go @@ -19,6 +19,8 @@ package merr import ( "github.com/cockroachdb/errors" "github.com/samber/lo" + + "github.com/milvus-io/milvus-proto/go-api/v2/commonpb" ) const ( @@ -71,7 +73,7 @@ var ( ErrCollectionOnRecovering = newMilvusError("collection on recovering", 106, true) ErrCollectionVectorClusteringKeyNotAllowed = newMilvusError("vector clustering key not allowed", 107, false) ErrCollectionReplicateMode = newMilvusError("can't operate on the collection under standby mode", 108, false) - ErrCollectionSchemaMismatch = newMilvusError("collection schema mismatch", 109, false) + ErrCollectionSchemaMismatch = newMilvusError("collection schema mismatch", int32(commonpb.ErrorCode_SchemaMismatch), false) // Partition related ErrPartitionNotFound = newMilvusError("partition not found", 200, false) ErrPartitionNotLoaded = newMilvusError("partition not loaded", 201, false)