navina commented on code in PR #9148:
URL: https://github.com/apache/pinot/pull/9148#discussion_r936290457


##########
pinot-controller/src/main/java/org/apache/pinot/controller/api/resources/PinotTableRestletResource.java:
##########
@@ -417,7 +417,9 @@ public String alterTableStateOrListTableConfig(
   @ApiOperation(value = "Deletes a table", notes = "Deletes a table")
   public SuccessResponse deleteTable(
       @ApiParam(value = "Name of the table to delete", required = true) 
@PathParam("tableName") String tableName,
-      @ApiParam(value = "realtime|offline") @QueryParam("type") String 
tableTypeStr) {
+      @ApiParam(value = "realtime|offline") @QueryParam("type") String 
tableTypeStr,
+      @ApiParam(value = "Retention period for the table segments (e.g. 12h, 
3d); Using 0d or -1d will instantly "
+          + "delete segments without retention") @QueryParam("retention") 
String retentionPeriod) {

Review Comment:
   What about the retention period specified in the table? :) 
   Perhaps it's simpler to use a boolean flag for whether they want instant 
delete or not? 



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to