Skip to content

Commit 525c6d3

Browse files
committed
update
1 parent 179d145 commit 525c6d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ private static long getNextPartitionSize(ArrayList<Long> historyPartitionsSize)
171171
}
172172

173173
boolean isAscending = true;
174-
List<Long> ascendingDeltaSize = List.newArrayList();
175-
for (int i = math.max(1, historyPartitionsSize.size() - 7); i < historyPartitionsSize.size(); i++) {
174+
ArrayList<Long> ascendingDeltaSize = new ArrayList<Long>();
175+
for (int i = Math.max(1, historyPartitionsSize.size() - 7); i < historyPartitionsSize.size(); i++) {
176176
long delta = historyPartitionsSize.get(i) - historyPartitionsSize.get(i - 1);
177177
if (delta < 0) {
178178
isAscending = false;

0 commit comments

Comments
 (0)