xiangfu0 commented on code in PR #20457:
URL: https://github.com/apache/pinot/pull/20457#discussion_r4795746236


##########
pinot-controller/src/main/java/org/apache/pinot/controller/api/resources/PinotLogicalTableResource.java:
##########
@@ -199,6 +202,14 @@ public SuccessResponse deleteLogicalTable(
     }
   }
 
+  private void authorizePhysicalTables(LogicalTableConfig logicalTableConfig, 
Request request, HttpHeaders headers) {
+    // Adding a physical table to a logical table prevents deletion of that 
physical table while it is referenced.
+    for (String physicalTableName : 
logicalTableConfig.getPhysicalTableConfigMap().keySet()) {

Review Comment:
   Included time-boundary sources in the same UPDATE check in 2d82300f81. The 
tests cover create and update with a boundary table outside the mapping. I also 
added the compatibility label and upgrade note. All five focused controller 
tests passed locally.



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