Skip to content
Snippets Groups Projects
Commit bf75c2fb authored by FluorineDog's avatar FluorineDog Committed by yefu.chen
Browse files

Fix bug (#1053)


Signed-off-by: default avatarFluorineDog <guilin.gou@zilliz.com>
parent 38266b85
No related branches found
No related tags found
No related merge requests found
......@@ -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");
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment