ankitsultana commented on code in PR #17170:
URL: https://github.com/apache/pinot/pull/17170#discussion_r2543555329


##########
pinot-query-runtime/src/main/java/org/apache/pinot/query/runtime/timeseries/TimeSeriesExchangeReceiveOperator.java:
##########
@@ -146,13 +164,35 @@ private TimeSeriesBlock getNextBlockWithAggregation()
       timeSeriesList.add(entry.getValue().build());
       seriesMap.put(seriesHash, timeSeriesList);
     }
-    return new TimeSeriesBlock(timeBuckets, seriesMap);
+    return new TimeSeriesBlock(timeBuckets, seriesMap, aggregatedStats);
+  }
+
+  /**
+   * TODO: Consider consolidating stats merging logic with
+   * {@link org.apache.pinot.core.query.reduce.ExecutionStatsAggregator}
+   **/
+  private void mergeStats(Map<String, String> aggregatedStats, Map<String, 
String> metadata) {

Review Comment:
   This logic is going to be common. E.g. it will even be required for our M3QL 
`UnionOperator` since we merge multiple blocks into one in those scenarios.
   
   In a future PR let's move it to a utils class or something (that utils class 
will need to be accessible from our internal plugin's dependencies)



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