fix optimizer stats and parser bug

This commit is contained in:
wangt1xiuyi
2023-05-25 18:41:19 +00:00
committed by ob-robot
parent 0557e597cb
commit 2ba249cddb
11 changed files with 98 additions and 35 deletions

View File

@ -38,7 +38,8 @@ ObAnalyzeStmt::ObAnalyzeStmt()
is_drop_(false),
part_ids_(),
subpart_ids_(),
ref_table_type_(share::schema::ObTableType::MAX_TABLE_TYPE)
ref_table_type_(share::schema::ObTableType::MAX_TABLE_TYPE),
gather_subpart_hist_(false)
{
}
@ -98,6 +99,7 @@ int ObAnalyzeStmt::fill_table_stat_param(ObExecContext &ctx, common::ObTableStat
param.global_stat_param_.need_modify_ = partition_name_.empty();
param.part_stat_param_.need_modify_ = !partition_infos_.empty();
param.subpart_stat_param_.need_modify_ = !subpartition_infos_.empty();
param.subpart_stat_param_.gather_histogram_ = gather_subpart_hist_;
}
LOG_TRACE("link bug", K(param));