diff --git a/fe/fe-core/src/main/java/org/apache/doris/datasource/InternalCatalog.java b/fe/fe-core/src/main/java/org/apache/doris/datasource/InternalCatalog.java index 102060ae2e6d60..f9cc57d3534d5d 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/datasource/InternalCatalog.java +++ b/fe/fe-core/src/main/java/org/apache/doris/datasource/InternalCatalog.java @@ -3117,9 +3117,9 @@ private boolean createOlapTable(Database db, CreateTableInfo createTableInfo) th idGeneratorBuffer, binlogConfigForTask, partitionInfo.getDataProperty(partitionId).isStorageMediumSpecified()); + olapTable.addPartition(partition); afterCreatePartitions(db.getId(), olapTable.getId(), olapTable.getPartitionIds(), olapTable.getIndexIdList(), true /* isCreateTable */, true /* isBatchCommit */, olapTable); - olapTable.addPartition(partition); } else if (partitionInfo.getType() == PartitionType.RANGE || partitionInfo.getType() == PartitionType.LIST) { try {