fix truncate table failed caused by delete history stats and enum/set type gather bug

This commit is contained in:
wangt1xiuyi
2023-03-06 02:43:31 +00:00
committed by ob-robot
parent c411be8e33
commit 0995c8b2f5
6 changed files with 15 additions and 125 deletions

View File

@ -166,7 +166,7 @@ int ObInsertLogPlan::check_need_online_stats_gather(bool &need_osg)
LOG_WARN("get unexpected null pointer", K(ret), K(insert_stmt->get_insert_table_info()));
} else if (OB_UNLIKELY(ins_table->is_system_table_ || ins_table->is_index_table_)
|| insert_stmt->is_insert_up()
|| insert_stmt->value_from_select()
|| !insert_stmt->value_from_select()
|| (!get_optimizer_context().get_session_info()->is_user_session())) {
need_gathering = false;
}