abhishekbafna commented on code in PR #15900:
URL: https://github.com/apache/pinot/pull/15900#discussion_r2121576970


##########
pinot-controller/src/main/java/org/apache/pinot/controller/api/resources/PinotTableRestletResource.java:
##########
@@ -422,6 +423,19 @@ public SuccessResponse deleteTable(
     List<String> tablesDeleted = new LinkedList<>();
     try {
       tableName = DatabaseUtils.translateTableName(tableName, headers);
+      // Validate the table is not referenced in any logical table config.

Review Comment:
   Extracted the logic into a separate method. The logic is to compare with 
input table name with both physical table name and raw table name version of 
the same. 



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

Reply via email to