Merge branch 'column_store'

Co-authored-by: wangt1xiuyi <13547954130@163.com>
Co-authored-by: yangqise7en <877793735@qq.com>
Co-authored-by: Zach41 <zach_41@163.com>
This commit is contained in:
chaser-ch
2023-10-31 15:39:20 +00:00
committed by ob-robot
parent 4057fbc4ae
commit 566e920620
1375 changed files with 239147 additions and 56014 deletions

View File

@ -1390,8 +1390,8 @@ int ObBasicSessionInfo::cast_sys_variable(ObIAllocator &calc_buf,
value,
casted_cell))) {
_LOG_WARN("failed to cast object, cell=%s from_type=%s to_type=%s ret=%d ",
to_cstring(value), ob_obj_type_str(value.get_type()),
ob_obj_type_str(type.get_type()), ret);
to_cstring(value), inner_obj_type_str(value.get_type()),
inner_obj_type_str(type.get_type()), ret);
} else if (OB_FAIL(base_sys_var_alloc_.write_obj(casted_cell, &out_value))) {
LOG_WARN("fail to store variable value", K(casted_cell), K(value), K(ret));
} else {

View File

@ -2763,6 +2763,8 @@ void ObSQLSessionInfo::ObCachedTenantConfigInfo::refresh()
enable_sql_extension_ = tenant_config->enable_sql_extension;
px_join_skew_handling_ = tenant_config->_px_join_skew_handling;
px_join_skew_minfreq_ = tenant_config->_px_join_skew_minfreq;
enable_column_store_ = tenant_config->_enable_column_store;
enable_decimal_int_type_ = tenant_config->_enable_decimal_int_type;
// 7. print_sample_ppm_ for flt
ATOMIC_STORE(&print_sample_ppm_, tenant_config->_print_sample_ppm);
}

View File

@ -651,6 +651,8 @@ public:
enable_query_response_time_stats_(false),
enable_user_defined_rewrite_rules_(false),
range_optimizer_max_mem_size_(128*1024*1024),
enable_column_store_(false),
enable_decimal_int_type_(false),
print_sample_ppm_(0),
last_check_ec_ts_(0),
session_(session)
@ -671,6 +673,8 @@ public:
bool get_px_join_skew_handling() const { return px_join_skew_handling_; }
int64_t get_px_join_skew_minfreq() const { return px_join_skew_minfreq_; }
int64_t get_range_optimizer_max_mem_size() const { return range_optimizer_max_mem_size_; }
bool get_enable_column_store() const { return enable_column_store_; }
bool get_enable_decimal_int_type() const { return enable_decimal_int_type_; }
private:
//租户级别配置项缓存session 上,避免每次获取都需要刷新
bool is_external_consistent_;
@ -686,6 +690,8 @@ public:
bool enable_query_response_time_stats_;
bool enable_user_defined_rewrite_rules_;
int64_t range_optimizer_max_mem_size_;
bool enable_column_store_;
bool enable_decimal_int_type_;
// for record sys config print_sample_ppm
int64_t print_sample_ppm_;
int64_t last_check_ec_ts_;
@ -1244,6 +1250,16 @@ public:
cached_tenant_config_info_.refresh();
return cached_tenant_config_info_.get_print_sample_ppm();
}
bool is_enable_column_store()
{
cached_tenant_config_info_.refresh();
return cached_tenant_config_info_.get_enable_column_store();
}
bool is_enable_decimal_int_type()
{
cached_tenant_config_info_.refresh();
return cached_tenant_config_info_.get_enable_decimal_int_type();
}
int get_tmp_table_size(uint64_t &size);
int ps_use_stream_result_set(bool &use_stream);
void set_proxy_version(uint64_t v) { proxy_version_ = v; }