Fix bug in skip scan with splitted ranges
This commit is contained in:
@ -499,6 +499,17 @@ int ObSQLSessionInfo::is_better_inlist_enabled(bool &enabled) const
|
||||
return ret;
|
||||
}
|
||||
|
||||
bool ObSQLSessionInfo::is_index_skip_scan_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->_optimizer_skip_scan_enabled;
|
||||
}
|
||||
return bret;
|
||||
}
|
||||
|
||||
void ObSQLSessionInfo::destroy(bool skip_sys_var)
|
||||
{
|
||||
if (is_inited_) {
|
||||
|
||||
@ -1147,6 +1147,7 @@ public:
|
||||
int is_groupby_placement_transformation_enabled(bool &transformation_enabled) const;
|
||||
bool is_in_range_optimization_enabled() const;
|
||||
int is_better_inlist_enabled(bool &enabled) const;
|
||||
bool is_index_skip_scan_enabled() const;
|
||||
|
||||
ObSessionDDLInfo &get_ddl_info() { return ddl_info_; }
|
||||
void set_ddl_info(const ObSessionDDLInfo &ddl_info) { ddl_info_ = ddl_info; }
|
||||
|
||||
Reference in New Issue
Block a user