未验证 提交 78a7aac6 编写于 作者: J Jin Hai 提交者: GitHub

Fix compile error (#1844)

Signed-off-by: NJinHai-CN <hai.jin@zilliz.com>
上级 2fcf2855
...@@ -367,7 +367,7 @@ ClientProxy::DescribeCollection(const std::string& collection_name, CollectionPa ...@@ -367,7 +367,7 @@ ClientProxy::DescribeCollection(const std::string& collection_name, CollectionPa
Status status = client_ptr_->DescribeTable(collection_name, grpc_schema); Status status = client_ptr_->DescribeTable(collection_name, grpc_schema);
collection_param.collection_name = grpc_schema.collection_name(); collection_param.collection_name = grpc_schema.table_name();
collection_param.dimension = grpc_schema.dimension(); collection_param.dimension = grpc_schema.dimension();
collection_param.index_file_size = grpc_schema.index_file_size(); collection_param.index_file_size = grpc_schema.index_file_size();
collection_param.metric_type = static_cast<MetricType>(grpc_schema.metric_type()); collection_param.metric_type = static_cast<MetricType>(grpc_schema.metric_type());
...@@ -400,7 +400,7 @@ ClientProxy::ShowCollections(std::vector<std::string>& collection_array) { ...@@ -400,7 +400,7 @@ ClientProxy::ShowCollections(std::vector<std::string>& collection_array) {
collection_array.resize(collection_name_list.table_names_size()); collection_array.resize(collection_name_list.table_names_size());
for (uint64_t i = 0; i < collection_name_list.table_names_size(); ++i) { for (uint64_t i = 0; i < collection_name_list.table_names_size(); ++i) {
collection_array[i] = collection_name_list.collection_names(i); collection_array[i] = collection_name_list.table_names(i);
} }
return status; return status;
} catch (std::exception& ex) { } catch (std::exception& ex) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册