Fix single-part table insert bug

This commit is contained in:
2149
2023-07-26 05:42:40 +00:00
committed by ob-robot
parent 357b157104
commit e7a96d3492

View File

@ -4067,7 +4067,14 @@ bool ObSQLUtils::is_one_part_table_can_skip_part_calc(const ObTableSchema &schem
if (!schema.is_partitioned_table()) {
can_skip = true;
} else if (schema.get_all_part_num() == 1 && schema.is_hash_part()) {
can_skip = true;
if (PARTITION_LEVEL_ONE == schema.get_part_level()) {
can_skip = true;
} else if (PARTITION_LEVEL_TWO == schema.get_part_level()
&& schema.is_hash_subpart()) {
can_skip = true;
} else {
can_skip = false;
}
} else {
can_skip = false;
}