You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by "Jackie-Jiang (via GitHub)" <gi...@apache.org> on 2023/04/10 16:47:36 UTC

[GitHub] [pinot] Jackie-Jiang commented on a diff in pull request #10447: Do not record operator stats when tracing is enabled

Jackie-Jiang commented on code in PR #10447:
URL: https://github.com/apache/pinot/pull/10447#discussion_r1161886897


##########
pinot-core/src/main/java/org/apache/pinot/core/query/reduce/ExecutionStatsAggregator.java:
##########
@@ -363,19 +362,19 @@ public void setStats(@Nullable String rawTableName, BrokerResponseNative brokerR
 
   public void setStageLevelStats(@Nullable String rawTableName, BrokerResponseStats brokerResponseStats,
       @Nullable BrokerMetrics brokerMetrics) {
-    setStats(rawTableName, brokerResponseStats, brokerMetrics);
+    if (_enableTrace) {
+      setStats(rawTableName, brokerResponseStats, brokerMetrics);
+      brokerResponseStats.setOperatorStats(_operatorStats);
+      brokerResponseStats.setTableNames(new ArrayList<>(_tableNames));

Review Comment:
   Should we always set the table names?



-- 
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-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org