diff --git a/fe/src/main/java/org/apache/doris/alter/Alter.java b/fe/src/main/java/org/apache/doris/alter/Alter.java index 4d0828a4e4eb8c..2a3e7278e7f864 100644 --- a/fe/src/main/java/org/apache/doris/alter/Alter.java +++ b/fe/src/main/java/org/apache/doris/alter/Alter.java @@ -167,7 +167,7 @@ public void processAlterTable(AlterTableStmt stmt) throws DdlException { OlapTable olapTable = (OlapTable) table; - if (olapTable.getPartitions().size() == 0) { + if (olapTable.getPartitions().size() == 0 && !hasPartition) { throw new DdlException("table with empty parition cannot do schema change. [" + tableName + "]"); }