[branch-2.1](auto-partition) fix auto partition expr change unexpected (#36345) (#36514)

pick #36345
This commit is contained in:
zclllyybb
2024-06-20 17:50:31 +08:00
committed by GitHub
parent cbaff8a700
commit 6df1a9ab75
4 changed files with 36 additions and 5 deletions

View File

@ -249,8 +249,9 @@ public class PartitionInfo implements Writable {
return isAutoCreatePartitions;
}
// forbid change metadata.
public ArrayList<Expr> getPartitionExprs() {
return this.partitionExprs;
return Expr.cloneList(this.partitionExprs);
}
public void checkPartitionItemListsMatch(List<PartitionItem> list1, List<PartitionItem> list2) throws DdlException {