add uiittest for merge result functions

Former-commit-id: 810194f590afbd4b4625840875e1447b464011b0
This commit is contained in:
starlord 2019-07-04 16:58:40 +08:00 committed by jinhai
parent 33ec9af47b
commit fc74f013a0
3 changed files with 1 additions and 6 deletions

View File

@ -14,9 +14,6 @@ Please mark all change in change log and use the ticket from JIRA.
## Improvement
- MS-156 - Add unittest for merge result functions
- MS-152 - Delete assert in MySQLMetaImpl and change MySQLConnectionPool impl
- MS-152 - Delete assert in MySQLMetaImpl and change MySQLConnectionPool impl
## New Feature

View File

@ -67,7 +67,7 @@ std::shared_ptr<IScheduleTask> SearchTask::Execute() {
//step 3: cluster result
SearchContext::ResultSet result_set;
auto spec_k = index_engine_->Count() < context->topk() ? index_engine_->Count() : context->topk();
ClusterResult(output_ids, output_distence, context->nq(), spec_k, result_set);
SearchTask::ClusterResult(output_ids, output_distence, context->nq(), spec_k, result_set);
rc.Record("cluster result");
//step 4: pick up topk result

View File

@ -4,9 +4,7 @@
// Proprietary and confidential.
////////////////////////////////////////////////////////////////////////////////
#include "db/scheduler/task/SearchTask.h"
#include <gtest/gtest.h>
#include <cmath>
#include <vector>