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: [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]