From bf75c2fbb4a26e7d4682a047c4b40f2cc3c3222c Mon Sep 17 00:00:00 2001 From: FluorineDog Date: Thu, 25 Feb 2021 17:56:43 +0800 Subject: [PATCH] Fix bug (#1053) Signed-off-by: FluorineDog --- internal/core/src/common/Schema.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/core/src/common/Schema.cpp b/internal/core/src/common/Schema.cpp index 63bb40de4b..0d7d6edc99 100644 --- a/internal/core/src/common/Schema.cpp +++ b/internal/core/src/common/Schema.cpp @@ -60,7 +60,7 @@ Schema::ParseFrom(const milvus::proto::schema::CollectionSchema& schema_proto) { if (!index_map.count("metric_type")) { auto default_metric_type = data_type == DataType::VECTOR_FLOAT ? MetricType::METRIC_L2 : MetricType::METRIC_Jaccard; - index_map["metric_type"] = default_metric_type; + index_map["metric_type"] = MetricTypeToName(default_metric_type); } AssertInfo(type_map.count("dim"), "dim not found");