xiangfu0 commented on code in PR #20457:
URL: https://github.com/apache/pinot/pull/20457#discussion_r4795203504
##########
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:
`timeBoundaryConfig.parameters.includedTables` names physical tables too,
but it isn't part of `getPhysicalTableConfigMap()`, and
`LogicalTableConfigUtils` (around line 178) doesn't require those names to be
in the map. Should they be limited to the mapped tables, or go through this
same check? Separately, create and update now need UPDATE on every referenced
table, which is a behaviour change worth a label and a line in the description.
--
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]