abhishekbafna commented on code in PR #15900: URL: https://github.com/apache/pinot/pull/15900#discussion_r2123212889
########## pinot-controller/src/main/java/org/apache/pinot/controller/api/resources/PinotTableRestletResource.java: ########## @@ -466,6 +470,23 @@ private boolean verifyTableType(String tableName, TableType tableType, TableType return typeFromTableName == null || typeFromTableName == expectedType; } + private void validateLogicalTableReference(String tableName) { + String rawTableName = TableNameBuilder.extractRawTableName(tableName); + List<LogicalTableConfig> allLogicalTableConfigs = + ZKMetadataProvider.getAllLogicalTableConfigs(_pinotHelixResourceManager.getPropertyStore()); + for (LogicalTableConfig logicalTableConfig : allLogicalTableConfigs) { Review Comment: If check it with `physicalTableConfigMap` then we do not need to check for the ref offline and realtime tables. They are already present in the `physicalTableConfigMap`. -- 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