You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by "jasperjiaguo (via GitHub)" <gi...@apache.org> on 2023/08/09 23:50:30 UTC

[GitHub] [pinot] jasperjiaguo commented on a diff in pull request #11296: refactor argmin/max to exprmin/max and make it calcite compliant

jasperjiaguo commented on code in PR #11296:
URL: https://github.com/apache/pinot/pull/11296#discussion_r1289368088


##########
pinot-segment-spi/src/main/java/org/apache/pinot/segment/spi/AggregationFunctionType.java:
##########
@@ -254,12 +254,12 @@ public enum AggregationFunctionType {
 
   // argMin and argMax
   // TODO: argmin/argmax syntax not conformed with Calcite. we need to migrate.
-  ARGMIN("argMin"),
-  ARGMAX("argMax"),
-  PARENTARGMIN(CommonConstants.RewriterConstants.PARENT_AGGREGATION_NAME_PREFIX + ARGMIN.getName()),
-  PARENTARGMAX(CommonConstants.RewriterConstants.PARENT_AGGREGATION_NAME_PREFIX + ARGMAX.getName()),
-  CHILDARGMIN(CommonConstants.RewriterConstants.CHILD_AGGREGATION_NAME_PREFIX + ARGMIN.getName()),
-  CHILDARGMAX(CommonConstants.RewriterConstants.CHILD_AGGREGATION_NAME_PREFIX + ARGMAX.getName()),
+  EXPRMIN("exprMin"),

Review Comment:
   Updated, PTAL, thanks!



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