diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/InsertOverwriteTableStmt.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/InsertOverwriteTableStmt.java index 17cca1cecc5e06..e9c33f3986c600 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/InsertOverwriteTableStmt.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/InsertOverwriteTableStmt.java @@ -67,7 +67,9 @@ public QueryStmt getQueryStmt() { } public List getPartitionNames() { - if (target.getPartitionNames() == null) { + if (target.getPartitionNames() == null + || target.getPartitionNames().getPartitionNames() == null + || target.getPartitionNames().isStar()) { return new ArrayList<>(); } return target.getPartitionNames().getPartitionNames();