[FEAT MERGE] [CP] Improve the rowcount estimation
Co-authored-by: akaError <lzg020616@163.com>
This commit is contained in:
@ -3531,6 +3531,13 @@ int ObBasicSessionInfo::is_serial_set_order_forced(bool &force_set_order, bool i
|
||||
return ret;
|
||||
}
|
||||
|
||||
int ObBasicSessionInfo::is_storage_estimation_enabled(bool &storage_estimation_enabled) const
|
||||
{
|
||||
int ret = OB_SUCCESS;
|
||||
ret = get_bool_sys_var(SYS_VAR__ENABLE_STORAGE_CARDINALITY_ESTIMATION, storage_estimation_enabled);
|
||||
return ret;
|
||||
}
|
||||
|
||||
int ObBasicSessionInfo::is_select_index_enabled(bool &select_index_enabled) const
|
||||
{
|
||||
return get_bool_sys_var(SYS_VAR_OB_ENABLE_INDEX_DIRECT_SELECT, select_index_enabled);
|
||||
|
||||
@ -1001,6 +1001,7 @@ public:
|
||||
int if_aggr_pushdown_allowed(bool &aggr_pushdown_allowed) const;
|
||||
int is_transformation_enabled(bool &transformation_enabled) const;
|
||||
int is_serial_set_order_forced(bool &force_set_order, bool is_oracle_mode) const;
|
||||
int is_storage_estimation_enabled(bool &storage_estimation_enabled) const;
|
||||
bool is_use_trace_log() const
|
||||
{
|
||||
return sys_vars_cache_.get_ob_enable_trace_log();
|
||||
|
||||
Reference in New Issue
Block a user