gortiz commented on code in PR #15135:
URL: https://github.com/apache/pinot/pull/15135#discussion_r1973323362


##########
pinot-query-planner/src/main/java/org/apache/pinot/query/planner/physical/DispatchableSubPlan.java:
##########
@@ -90,7 +124,11 @@ public Map<String, Set<String>> 
getTableToUnavailableSegmentsMap() {
   public int getEstimatedNumQueryThreads() {
     int estimatedNumQueryThreads = 0;
     // Skip broker reduce root stage
-    for (DispatchablePlanFragment stage : _queryStageList.subList(1, 
_queryStageList.size())) {
+    for (Map.Entry<Integer, DispatchablePlanFragment> entry : 
_queryStageMap.entrySet()) {
+      if (entry.getKey() == 0) {
+        continue;
+      }
+      DispatchablePlanFragment stage = entry.getValue();

Review Comment:
   Thinking about this twice... Probably it is better to improve readability 
instead of performance here



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

Reply via email to