fix some sql logical plan bug

This commit is contained in:
zzg19950727
2023-11-21 15:14:59 +00:00
committed by ob-robot
parent 4e25ca5f67
commit 82418cf225
9 changed files with 257 additions and 47 deletions

View File

@ -1350,7 +1350,6 @@ int ObAccessPathEstimation::process_dynamic_sampling_estimation(ObOptimizerConte
{
int ret = OB_SUCCESS;
LOG_TRACE("begin process dynamic sampling estimation", K(paths), K(is_inner_path));
OPT_TRACE("begin to process table dynamic sampling estimation");
ObDSTableParam ds_table_param;
ObSEArray<ObDSResultItem, 4> ds_result_items;
bool only_ds_basic_stat = false;
@ -1382,6 +1381,7 @@ int ObAccessPathEstimation::process_dynamic_sampling_estimation(ObOptimizerConte
} else if (!only_ds_basic_stat && ds_paths.empty()) {
//do nothing
} else {
OPT_TRACE("begin to process table dynamic sampling estimation");
ObArenaAllocator allocator("ObOpTableDS", OB_MALLOC_NORMAL_BLOCK_SIZE, ctx.get_session_info()->get_effective_tenant_id());
ObDynamicSampling dynamic_sampling(ctx, allocator);
int64_t start_time = ObTimeUtility::current_time();
@ -1414,8 +1414,10 @@ int ObAccessPathEstimation::process_dynamic_sampling_estimation(ObOptimizerConte
is_inner_path, ds_result_items))) {
LOG_WARN("failed to estimate path rowcount by dynamic sampling", K(ret));
}
OPT_TRACE("end to process table dynamic sampling estimation");
OPT_TRACE_TITLE("DYNAMIC SAMPLE RESULT");
OPT_TRACE(ds_result_items);
}
OPT_TRACE("end to process table dynamic sampling estimation");
return ret;
}