albertobastos commented on code in PR #15254:
URL: https://github.com/apache/pinot/pull/15254#discussion_r1993208222


##########
pinot-core/src/main/java/org/apache/pinot/core/operator/combine/GroupByCombineOperator.java:
##########
@@ -123,6 +124,7 @@ protected void processSegments() {
         if (resultsBlock.isNumGroupsLimitReached()) {
           _numGroupsLimitReached = true;
         }
+        _numGroups = resultsBlock.getNumGroups();

Review Comment:
   As we discussed this new stat is not reliable for MSE queries, so for now we 
avoid adding it.



##########
pinot-common/src/main/java/org/apache/pinot/common/metrics/ServerMeter.java:
##########
@@ -148,6 +148,14 @@ public enum ServerMeter implements AbstractMetrics.Meter {
    * by 2.
    */
   AGGREGATE_TIMES_NUM_GROUPS_LIMIT_REACHED("times", true),
+  /**
+   * Number of times the number of groups has reached the warning limit.
+   * It is increased at most one by one each time per stage.
+   * That means that if a stage has 10 workers and all of them reach the 
limit, this will be increased by 1.
+   * But if a single query has 2 different aggregate operators and each one 
reaches the limit, this will be increased
+   * by 2.
+   */
+  AGGREGATE_TIMES_NUM_GROUPS_LIMIT_WARNING("times", true),

Review Comment:
   Added two metrics, global and non-global.



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