[FEAT MERGE]adaptive cost model
This commit is contained in:
@ -139,9 +139,12 @@ int ObLogTableScan::do_re_est_cost(EstimateCostInfo ¶m, 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;
|
||||
|
||||
Reference in New Issue
Block a user