Skip to content

Commit 247777c

Browse files
deardengyiguolei
authored andcommitted
fix
1 parent c3af819 commit 247777c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

fe/fe-core/src/main/java/org/apache/doris/alter/Alter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ public void processAlterTable(AlterTableCommand command) throws UserException {
688688
DynamicPartitionUtil.checkAlterAllowed(
689689
(OlapTable) db.getTableOrMetaException(tableName, TableType.OLAP));
690690
}
691-
Env.getCurrentEnv().addPartition(db, tableName, (AddPartitionClause) alterClause, false, 0, true);
691+
Env.getCurrentEnv().addPartition(db, tableName, (AddPartitionClause) alterClause, false, 0, true, null);
692692
} else if (alterClause instanceof AddPartitionLikeClause) {
693693
if (!((AddPartitionLikeClause) alterClause).getIsTempPartition()) {
694694
DynamicPartitionUtil.checkAlterAllowed(

fe/fe-core/src/main/java/org/apache/doris/clone/DynamicPartitionScheduler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,7 @@ private void cloudBatchAfterCreatePartitions(boolean executeFirstTime,
858858
// get table write lock to add partition, edit log and modify table state must be atomic
859859
olapTable.writeLockOrDdlException();
860860
try {
861-
boolean isTempPartition = addPartitionOps.get(i).isTempPartition();
861+
boolean isTempPartition = addPartitionClauses.get(i).isTempPartition();
862862
Partition toAddPartition = batchPartsInfo.get(i).second;
863863
String partitionName = toAddPartition.getName();
864864
// ATTN: Check here to see if the newly created dynamic

0 commit comments

Comments
 (0)