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


##########
pinot-query-planner/src/main/java/org/apache/pinot/query/planner/physical/MailboxAssignmentVisitor.java:
##########
@@ -43,99 +43,102 @@ public Void process(PlanNode node, DispatchablePlanContext 
context) {
     if (node instanceof MailboxSendNode) {
       MailboxSendNode sendNode = (MailboxSendNode) node;
       int senderStageId = sendNode.getStageId();
-      int receiverStageId = sendNode.getReceiverStageId();
-      Map<Integer, DispatchablePlanMetadata> metadataMap = 
context.getDispatchablePlanMetadataMap();
-      DispatchablePlanMetadata senderMetadata = metadataMap.get(senderStageId);
-      DispatchablePlanMetadata receiverMetadata = 
metadataMap.get(receiverStageId);
-      Map<Integer, QueryServerInstance> senderServerMap = 
senderMetadata.getWorkerIdToServerInstanceMap();
-      Map<Integer, QueryServerInstance> receiverServerMap = 
receiverMetadata.getWorkerIdToServerInstanceMap();
-      Map<Integer, Map<Integer, MailboxInfos>> senderMailboxesMap = 
senderMetadata.getWorkerIdToMailboxesMap();
-      Map<Integer, Map<Integer, MailboxInfos>> receiverMailboxesMap = 
receiverMetadata.getWorkerIdToMailboxesMap();
+      for (Integer receiverStageId : sendNode.getReceiverStageIds()) {

Review Comment:
   I recommend to review this class with the `hide whitespace` option in GH



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