[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

@ -416,6 +416,17 @@ int ObSQLSessionInfo::is_groupby_placement_transformation_enabled(bool &transfor
return ret;
}
bool ObSQLSessionInfo::is_in_range_optimization_enabled() const
{
bool bret = false;
int64_t tenant_id = get_effective_tenant_id();
omt::ObTenantConfigGuard tenant_config(TENANT_CONF(tenant_id));
if (tenant_config.is_valid()) {
bret = tenant_config->_enable_in_range_optimization;
}
return bret;
}
void ObSQLSessionInfo::destroy(bool skip_sys_var)
{
if (is_inited_) {