diff --git a/fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java b/fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java index be328bb12427bb..755fecc326cdfa 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java +++ b/fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java @@ -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()) {