tibrewalpratik17 commented on code in PR #10336: URL: https://github.com/apache/pinot/pull/10336#discussion_r1118723829
########## pinot-controller/src/main/java/org/apache/pinot/controller/api/resources/PinotQueryResource.java: ########## @@ -226,6 +228,31 @@ private String getQueryResponse(String query, @Nullable SqlNode sqlNode, String return sendRequestToBroker(query, instanceId, traceEnabled, queryOptions, httpHeaders); } + // get list of common broker instances for a given set of tables + private List<String> getCommonInstances(List<String> tableNames) { + boolean firstTable = true; + Set<String> brokerInstanceList = new HashSet<>(); + for (String tableName : tableNames) { + String rawTableName = TableNameBuilder.extractRawTableName(_pinotHelixResourceManager + .getActualTableName(tableName)); + List<String> tableBrokerInstances; + try { + tableBrokerInstances = _pinotHelixResourceManager.getLiveBrokersForTable(rawTableName); Review Comment: Yeah good point! I was thinking along the same lines of removing this. -- 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