Skip to content

Commit

Permalink
spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
shuwenwei committed Oct 23, 2024
1 parent 3308b4e commit e6640fa
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,23 +50,23 @@ public class TimePartitionUtils {
long maxPartition = getTimePartitionIdWithoutOverflow(Long.MAX_VALUE);
BigInteger minPartitionStartTime =
BigInteger.valueOf(minPartition)
.multiply(BigInteger.valueOf(timePartitionInterval))
.add(BigInteger.valueOf(timePartitionOrigin));
.multiply(bigTimePartitionInterval)
.add(bigTimePartitionOrigin);
BigInteger maxPartitionEndTime =
BigInteger.valueOf(maxPartition)
.multiply(BigInteger.valueOf(timePartitionInterval))
.add(BigInteger.valueOf(timePartitionInterval))
.add(BigInteger.valueOf(timePartitionOrigin))
.multiply(bigTimePartitionInterval)
.add(bigTimePartitionInterval)
.add(bigTimePartitionOrigin)
.subtract(BigInteger.ONE);
if (minPartitionStartTime.compareTo(BigInteger.valueOf(Long.MIN_VALUE)) < 0) {
timePartitionLowerBoundWithoutOverflow =
minPartitionStartTime.add(BigInteger.valueOf(timePartitionInterval)).longValue();
minPartitionStartTime.add(bigTimePartitionInterval).longValue();
} else {
timePartitionLowerBoundWithoutOverflow = minPartitionStartTime.longValue();
}
if (maxPartitionEndTime.compareTo(BigInteger.valueOf(Long.MAX_VALUE)) > 0) {
timePartitionUpperBoundWithoutOverflow =
maxPartitionEndTime.subtract(BigInteger.valueOf(timePartitionInterval)).longValue();
maxPartitionEndTime.subtract(bigTimePartitionInterval).longValue();
} else {
timePartitionUpperBoundWithoutOverflow = maxPartitionEndTime.longValue();
}
Expand Down

0 comments on commit e6640fa

Please sign in to comment.