Skip to content

Commit

Permalink
[bugfix](insert) fix cherry pick : redundant branch judgment #34160
Browse files Browse the repository at this point in the history
  • Loading branch information
wuwenchi authored Apr 26, 2024
1 parent 90040e7 commit 5e9eb41
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2698,10 +2698,7 @@ private void handleIotStmt() {
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()) {
Expand Down

0 comments on commit 5e9eb41

Please sign in to comment.