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

Fix bug (#1053)

parent 38266b85
Branches
Tags
No related merge requests found
...@@ -60,7 +60,7 @@ Schema::ParseFrom(const milvus::proto::schema::CollectionSchema& schema_proto) { ...@@ -60,7 +60,7 @@ Schema::ParseFrom(const milvus::proto::schema::CollectionSchema& schema_proto) {
if (!index_map.count("metric_type")) { if (!index_map.count("metric_type")) {
auto default_metric_type = auto default_metric_type =
data_type == DataType::VECTOR_FLOAT ? MetricType::METRIC_L2 : MetricType::METRIC_Jaccard; 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"); AssertInfo(type_map.count("dim"), "dim not found");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment