[FEAT MERGE]adaptive cost model

This commit is contained in:
zzg19950727
2024-02-07 11:01:37 +00:00
committed by ob-robot
parent 1ee1ad37e4
commit 9a22f3ea88
85 changed files with 21899 additions and 18832 deletions

View File

@ -220,12 +220,12 @@ int ObLogExprValues::do_re_est_cost(EstimateCostInfo &param, double &card, doubl
ObOptimizerContext &opt_ctx = get_plan()->get_optimizer_context();
card = get_stmt()->is_insert_stmt() ? static_cast<const ObInsertStmt*>(get_stmt())->get_insert_row_count() :
get_values_row_count();
op_cost = ObOptEstCost::cost_get_rows(get_card(), opt_ctx.get_cost_model_type());
op_cost = ObOptEstCost::cost_get_rows(get_card(), opt_ctx);
cost = op_cost;
} else {
ObOptimizerContext &opt_ctx = get_plan()->get_optimizer_context();
card = 1.0;
op_cost = ObOptEstCost::cost_filter_rows(get_card(), filter_exprs_, opt_ctx.get_cost_model_type());
op_cost = ObOptEstCost::cost_filter_rows(get_card(), filter_exprs_, opt_ctx);
cost = op_cost;
}
return ret;