jerryshao commented on code in PR #7876:
URL: https://github.com/apache/gravitino/pull/7876#discussion_r2286869125
##########
server/src/main/java/org/apache/gravitino/server/web/rest/StatisticOperations.java:
##########
@@ -428,38 +427,32 @@ public Response dropPartitionStatistics(
}
}
+ @VisibleForTesting
+ static PartitionRange.BoundType getFromBoundType(boolean inclusive) {
+ return inclusive ? PartitionRange.BoundType.CLOSED :
PartitionRange.BoundType.OPEN;
+ }
+
private static String getFormattedFromPartitionName(
- String fromPartitionName, boolean fromExclusive) {
- if (fromExclusive) {
- Preconditions.checkArgument(
- StringUtils.isNotBlank(fromPartitionName),
- "'from' partition name must not be null or empty when
'fromExclusive' is true");
- return "[" + fromPartitionName;
+ String fromPartitionName, boolean fromInclusive) {
+ if (fromPartitionName == null) {
+ return "(-INF";
} else {
- if (fromPartitionName == null) {
- return "(-INF";
- } else {
+ if (fromInclusive) {
return "(" + fromPartitionName;
Review Comment:
Should you change to "[" for `fromInclusive` to `true`?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]