ege-st commented on code in PR #11576: URL: https://github.com/apache/pinot/pull/11576#discussion_r1323257805
########## pinot-server/src/main/java/org/apache/pinot/server/api/resources/TablesResource.java: ########## @@ -285,15 +289,60 @@ public String getSegmentMetadata( return ResourceUtils.convertToJsonString(tableMetadataInfo); } + @GET + @Encoded + @Path("/tables/{tableName}/indexes") + @Produces(MediaType.APPLICATION_JSON) + @ApiOperation(value = "Provide index metadata", notes = "Provide index details for the table") + @ApiResponses(value = { + @ApiResponse(code = 200, message = "Success"), @ApiResponse(code = 500, message = "Internal server error", + response = ErrorInfo.class), @ApiResponse(code = 404, message = "Table or segment not found", response = + ErrorInfo.class) + }) + public String getTableIndexes( Review Comment: Likewise, shouldn't we have some unit tests and integration tests to validate this new API? ########## pinot-controller/src/main/java/org/apache/pinot/controller/api/resources/PinotTableRestletResource.java: ########## @@ -964,6 +965,77 @@ public String getTableAggregateMetadata( return segmentsMetadata; } + @GET + @Path("tables/{tableName}/indexes") + @Authorize(targetType = TargetType.TABLE, paramName = "tableName", action = Actions.Table.GET_METADATA) + @Produces(MediaType.APPLICATION_JSON) + @ApiOperation(value = "Get the aggregate index details of all segments for a table", notes = "Get the aggregate " + + "index details of all segments for a table") + public String getTableIndexes( Review Comment: Since this is a new API, shouldn't we have tests to validate its behavior? -- 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: commits-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org