提交 174e16ad 编写于 作者: F fishpenguin

fix add_vector_data bug in clientproxy

上级 93d4798f
We manually add two APIs in "milvus.pd.h":
add_vector_data
add_row_id_array
add_vector_data()
add_row_id_array()
If proto files need be generated again, remember to re-add above APIs.
\ No newline at end of file
......@@ -188,14 +188,13 @@ ClientProxy::Insert(const std::string& table_name, const std::vector<RowRecord>&
for (auto& record : record_array) {
::milvus::grpc::RowRecord* grpc_record = insert_param.add_row_record_array();
for (size_t i = 0; i < record.data.size(); i++) {
grpc_record->add_vector_data(record.data.begin(), record.data.end());
}
grpc_record->add_vector_data(record.data.begin(), record.data.end());
}
// Single thread
::milvus::grpc::VectorIds vector_ids;
if (!id_array.empty()) {
/* set user's ids */
insert_param.add_row_id_array(id_array.begin(), id_array.end());
client_ptr_->Insert(vector_ids, insert_param, status);
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册