disable gather histogram for granularity=>'auto' when subpart type is not list or range
This commit is contained in:
@ -93,14 +93,9 @@ int ObAnalyzeStmt::fill_table_stat_param(ObExecContext &ctx, common::ObTableStat
|
||||
param.sample_info_ = sample_info_;
|
||||
param.degree_ = parallel_degree_;
|
||||
//analyze stmt default use granularity is based partition type(oracle 12c),maybe refine it later
|
||||
param.need_global_ = partition_name_.empty();
|
||||
param.need_approx_global_ = false;
|
||||
param.need_part_ = !partition_infos_.empty();
|
||||
param.need_subpart_ = !subpartition_infos_.empty();
|
||||
// param.need_approx_global_ = false;
|
||||
// param.need_global_ = part_level_ == share::schema::PARTITION_LEVEL_ZERO;
|
||||
// param.need_part_ = part_level_ == share::schema::PARTITION_LEVEL_ONE;
|
||||
// param.need_subpart_ = part_level_ == share::schema::PARTITION_LEVEL_TWO;
|
||||
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();
|
||||
}
|
||||
|
||||
LOG_TRACE("link bug", K(param));
|
||||
|
||||
Reference in New Issue
Block a user