feat: add the rule to use-das when has variable assignments in sql
Co-authored-by: leslieyuchen <leslieyuchen@gmail.com>
This commit is contained in:
@ -512,6 +512,17 @@ bool ObSQLSessionInfo::is_index_skip_scan_enabled() const
|
||||
return bret;
|
||||
}
|
||||
|
||||
bool ObSQLSessionInfo::is_var_assign_use_das_enabled() const
|
||||
{
|
||||
bool bret = true;
|
||||
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_var_assign_use_das;
|
||||
}
|
||||
return bret;
|
||||
}
|
||||
|
||||
void ObSQLSessionInfo::destroy(bool skip_sys_var)
|
||||
{
|
||||
if (is_inited_) {
|
||||
|
||||
@ -1150,6 +1150,7 @@ public:
|
||||
bool is_in_range_optimization_enabled() const;
|
||||
int is_better_inlist_enabled(bool &enabled) const;
|
||||
bool is_index_skip_scan_enabled() const;
|
||||
bool is_var_assign_use_das_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