[FEAT MERGE]adaptive cost model

This commit is contained in:
zzg19950727
2023-12-06 03:12:01 +00:00
committed by ob-robot
parent 6520c7b570
commit d70d986be9
85 changed files with 21899 additions and 18832 deletions

View File

@ -400,7 +400,7 @@ int ObLogSort::inner_est_cost(const int64_t parallel, double child_card, double
&get_plan()->get_selectivity_ctx(),
double_topn_count,
part_cnt_);
if (OB_FAIL(ObOptEstCost::cost_sort(cost_info, op_cost, opt_ctx.get_cost_model_type()))) {
if (OB_FAIL(ObOptEstCost::cost_sort(cost_info, op_cost, opt_ctx))) {
LOG_WARN("failed to calc cost", K(ret), K(child->get_type()));
} else if (NULL != topn_expr_) {
double_topn_count = std::min(double_topn_count * parallel, child_card);