Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dengzhhu653 committed Dec 7, 2023
1 parent 325a646 commit 4651175
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,11 @@ public JSONAlterPartitionsMessage(String server, String servicePrincipal, Table
this.tableObjJson = MessageBuilder.createTableObjJson(tableObj);
Iterator<Partition> iterator = partitionsAfter.iterator();
while (iterator.hasNext()) {
Partition partitionObj = iterator.next();
Partition partitionObj = new Partition(iterator.next());
// remove stats from the partition to reduce the message size
if (partitionObj.isSetParameters()) {
partitionObj.getParameters().clear();
}
partitions.add(MessageBuilder.getPartitionKeyValues(tableObj, partitionObj));
partitionListJson.add(MessageBuilder.createPartitionObjJson(partitionObj));
}
Expand Down

0 comments on commit 4651175

Please sign in to comment.