mirror of https://github.com/milvus-io/milvus.git
Fix binary vector metric type validation
Signed-off-by: bigsheeper <yihao.dai@zilliz.com>pull/4973/head^2
parent
be32a33eff
commit
1e3b7cd55e
|
@ -130,7 +130,7 @@ func ValidateDimension(dim int64, isBinary bool) error {
|
|||
}
|
||||
|
||||
func ValidateVectorFieldMetricType(field *schemapb.FieldSchema) error {
|
||||
if field.DataType != schemapb.DataType_VECTOR_FLOAT {
|
||||
if (field.DataType != schemapb.DataType_VECTOR_FLOAT) && (field.DataType != schemapb.DataType_VECTOR_BINARY) {
|
||||
return nil
|
||||
}
|
||||
for _, params := range field.IndexParams {
|
||||
|
|
Loading…
Reference in New Issue