[CP] [CP] add _enable_in_range_optimization system variable and fix in expr bug
This commit is contained in:
@ -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_) {
|
||||
|
||||
Reference in New Issue
Block a user