mqliang commented on a change in pull request #7061:
URL: https://github.com/apache/incubator-pinot/pull/7061#discussion_r652177404
##########
File path:
pinot-controller/src/main/java/org/apache/pinot/controller/api/resources/PinotSegmentRestletResource.java
##########
@@ -591,7 +592,8 @@ private void deleteSegmentsInternal(String
tableNameWithType, List<String> segme
@ApiOperation(value = "Get the server metadata for all table segments",
notes = "Get the server metadata for all table segments")
public String getServerMetadata(
@ApiParam(value = "Name of the table", required = true)
@PathParam("tableName") String tableName,
- @ApiParam(value = "OFFLINE|REALTIME") @QueryParam("type") String
tableTypeStr) {
+ @ApiParam(value = "OFFLINE|REALTIME") @QueryParam("type") String
tableTypeStr,
+ @ApiParam(value = "Columns name", allowMultiple = true)
@QueryParam("columns") @DefaultValue("") List<String> columns) {
Review comment:
Not a comma-separated column list, but can be specified multiple times,
since `allowMultiple = true`, a example query looks like:
```
curl
http://localhost:18998/segments/mytable/metadata?columns=AirlineID&columns=ArrTime&columns=ArrTimeBlk
```
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]