[CP] [CP] add _enable_in_range_optimization system variable and fix in expr bug

This commit is contained in:
Larry955
2023-06-02 03:12:00 +00:00
committed by ob-robot
parent 1b80e45edc
commit 8808c6750f
13 changed files with 138 additions and 68 deletions

View File

@ -3833,7 +3833,10 @@ int ObOptSelectivity::get_column_query_range(const OptSelectivityCtx &ctx,
dtc_params,
ctx.get_opt_ctx().get_exec_ctx(),
NULL,
params))) {
params,
false,
true,
ctx.get_session_info()->is_in_range_optimization_enabled()))) {
LOG_WARN("failed to preliminary extract query range", K(ret));
} else if (!query_range.need_deep_copy()) {
if (OB_FAIL(query_range.direct_get_tablet_ranges(allocator, *exec_ctx, ranges,