mirror of https://github.com/milvus-io/milvus.git
parent
4cd5d8dd1b
commit
a3935eed71
|
@ -514,6 +514,7 @@ TEST_F(RpcHandlerTest, COMBINE_SEARCH_TEST) {
|
||||||
int64_t index = 0;
|
int64_t index = 0;
|
||||||
for (auto& result_ptr : result_array) {
|
for (auto& result_ptr : result_array) {
|
||||||
ASSERT_NE(result_ptr->ids_size(), 0);
|
ASSERT_NE(result_ptr->ids_size(), 0);
|
||||||
|
ASSERT_NE(result_ptr->row_num(), 0);
|
||||||
std::string msg = "Result no." + std::to_string(index) + ": \n";
|
std::string msg = "Result no." + std::to_string(index) + ": \n";
|
||||||
for (int64_t i = 0; i < NQ; i++) {
|
for (int64_t i = 0; i < NQ; i++) {
|
||||||
for (int64_t k = 0; k < TOPK; k++) {
|
for (int64_t k = 0; k < TOPK; k++) {
|
||||||
|
@ -615,6 +616,7 @@ TEST_F(RpcHandlerTest, COMBINE_SEARCH_BINARY_TEST) {
|
||||||
int64_t index = 0;
|
int64_t index = 0;
|
||||||
for (auto& result_ptr : result_array) {
|
for (auto& result_ptr : result_array) {
|
||||||
ASSERT_NE(result_ptr->ids_size(), 0);
|
ASSERT_NE(result_ptr->ids_size(), 0);
|
||||||
|
ASSERT_NE(result_ptr->row_num(), 0);
|
||||||
std::string msg = "Result no." + std::to_string(++index) + ": \n";
|
std::string msg = "Result no." + std::to_string(++index) + ": \n";
|
||||||
for (int64_t i = 0; i < NQ; i++) {
|
for (int64_t i = 0; i < NQ; i++) {
|
||||||
for (int64_t k = 0; k < TOPK; k++) {
|
for (int64_t k = 0; k < TOPK; k++) {
|
||||||
|
|
|
@ -58,6 +58,8 @@ InsertEntities(std::shared_ptr<milvus::Connection>& conn) {
|
||||||
milvus::Status stat = conn->Insert(COLLECTION_NAME, "", entity_array, record_ids);
|
milvus::Status stat = conn->Insert(COLLECTION_NAME, "", entity_array, record_ids);
|
||||||
std::cout << "InsertEntities function call status: " << stat.message() << std::endl;
|
std::cout << "InsertEntities function call status: " << stat.message() << std::endl;
|
||||||
std::cout << "Returned id array count: " << record_ids.size() << std::endl;
|
std::cout << "Returned id array count: " << record_ids.size() << std::endl;
|
||||||
|
|
||||||
|
stat = conn->FlushCollection(COLLECTION_NAME);
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue