walterddr commented on code in PR #10447:
URL: https://github.com/apache/pinot/pull/10447#discussion_r1161970613


##########
pinot-query-runtime/src/main/java/org/apache/pinot/query/service/dispatch/QueryDispatcher.java:
##########
@@ -221,12 +223,14 @@ private static List<DataBlock> 
reduceMailboxReceive(MailboxReceiveOperator mailb
             OperatorStats operatorStats = entry.getValue();
             ExecutionStatsAggregator rootStatsAggregator = 
executionStatsAggregatorMap.get(0);
             ExecutionStatsAggregator stageStatsAggregator = 
executionStatsAggregatorMap.get(operatorStats.getStageId());
-            if (queryPlan != null) {
-              StageMetadata operatorStageMetadata = 
queryPlan.getStageMetadataMap().get(operatorStats.getStageId());
-              OperatorUtils.recordTableName(operatorStats, 
operatorStageMetadata);
-            }
             rootStatsAggregator.aggregate(null, 
entry.getValue().getExecutionStats(), new HashMap<>());
-            stageStatsAggregator.aggregate(null, 
entry.getValue().getExecutionStats(), new HashMap<>());
+            if (stageStatsAggregator != null) {

Review Comment:
   sounds good. 



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

Reply via email to