[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

@ -139,9 +139,12 @@ int ObLogTableScan::do_re_est_cost(EstimateCostInfo &param, double &card, double
}
param.need_row_count_ = std::min(param.need_row_count_, card);
param.need_row_count_ += offset_count_double;
if (OB_FAIL(AccessPath::re_estimate_cost(param, *est_cost_info_, sample_info_,
opt_ctx->get_cost_model_type(),
card, op_cost))) {
if (OB_FAIL(AccessPath::re_estimate_cost(param,
*est_cost_info_,
sample_info_,
*opt_ctx,
card,
op_cost))) {
LOG_WARN("failed to re estimate cost", K(ret));
} else {
cost = op_cost;