[Fix]fix insert overwrite non-partition table null pointer exception (#33205)

fix legacy planner bug when insert overwrite non-partition table.
This commit is contained in:
feiniaofeiafei
2024-04-08 19:26:21 +08:00
committed by yiguolei
parent 38b2e58d59
commit 2708641bee
2 changed files with 34 additions and 0 deletions

View File

@ -2602,6 +2602,9 @@ public class StmtExecutor {
if (iotStmt.getPartitionNames().size() == 0) {
// insert overwrite table
handleOverwriteTable(iotStmt);
} else if (iotStmt.isAutoDetectPartition()) {
// insert overwrite table auto detect which partitions need to replace
handleAutoOverwritePartition(iotStmt);
} else {
// insert overwrite table with partition
handleOverwritePartition(iotStmt);