[bugfix](insert) fix cherry pick : redundant branch judgment #34160

This commit is contained in:
wuwenchi
2024-04-27 02:19:39 +08:00
committed by GitHub
parent 90040e7f92
commit 5e9eb417ad

View File

@ -2698,10 +2698,7 @@ public class StmtExecutor {
ConnectContext.get().setSkipAuth(true);
try {
InsertOverwriteTableStmt iotStmt = (InsertOverwriteTableStmt) this.parsedStmt;
if (iotStmt.isAutoDetectPartition()) {
// insert overwrite table auto detect which partitions need to replace
handleAutoOverwritePartition(iotStmt);
} else if (iotStmt.getPartitionNames().size() == 0) {
if (iotStmt.getPartitionNames().size() == 0) {
// insert overwrite table
handleOverwriteTable(iotStmt);
} else if (iotStmt.isAutoDetectPartition()) {