fix optimizer stats and parser bug
This commit is contained in:
		@ -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));
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user