jerqi commented on code in PR #7876:
URL: https://github.com/apache/gravitino/pull/7876#discussion_r2285315714
##########
server/src/main/java/org/apache/gravitino/server/web/rest/StatisticOperations.java:
##########
@@ -200,4 +214,253 @@ public Response dropStatistics(
OperationType.DROP, StringUtils.join(request.getNames(), ","),
fullName, e);
}
}
+
+ @GET
+ @Path("/partitions")
+ @Produces("application/vnd.gravitino.v1+json")
+ @Timed(name = "list-partition-stats." + MetricNames.HTTP_PROCESS_DURATION,
absolute = true)
+ @ResponseMetered(name = "list-partition-stats", absolute = true)
+ public Response listPartitionStatistics(
+ @PathParam("metalake") String metalake,
+ @PathParam("type") String type,
+ @PathParam("fullName") String fullName,
+ @QueryParam("from") String fromPartitionName,
+ @QueryParam("to") String toPartitionName,
+ @QueryParam("fromExclusive") @DefaultValue("false") boolean
fromExclusive,
+ @QueryParam("toExclusive") @DefaultValue("false") boolean toExclusive) {
Review Comment:
Change `Exclusive` to `Inclusive`. Using `[)` as the default value.
--
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]