You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "m-dzianishchyts (via GitHub)" <gi...@apache.org> on 2024/02/22 14:54:48 UTC
[PR] CAY-2835 Custom aggregate functions [cayenne]
m-dzianishchyts opened a new pull request, #609:
URL: https://github.com/apache/cayenne/pull/609
(no comment)
--
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@cayenne.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] CAY-2835 Custom aggregate functions [cayenne]
Posted by "stariy95 (via GitHub)" <gi...@apache.org>.
stariy95 merged PR #609:
URL: https://github.com/apache/cayenne/pull/609
--
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@cayenne.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] CAY-2835 Custom aggregate functions [cayenne]
Posted by "stariy95 (via GitHub)" <gi...@apache.org>.
stariy95 commented on code in PR #609:
URL: https://github.com/apache/cayenne/pull/609#discussion_r1500302311
##########
cayenne/src/main/java/org/apache/cayenne/exp/parser/ExpressionParserTreeConstants.java:
##########
@@ -64,6 +64,7 @@ public interface ExpressionParserTreeConstants
public int JJTDBPATH = 58;
public int JJTENUM = 59;
public int JJTDBIDPATH = 60;
+ public int JJTCUSTOMAGGREGATE = 61;
Review Comment:
It is better to leave generation of these constants to JavaCC and just leave 0 as a new AST node id for now.
--
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@cayenne.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] CAY-2835 Custom aggregate functions [cayenne]
Posted by "stariy95 (via GitHub)" <gi...@apache.org>.
stariy95 commented on code in PR #609:
URL: https://github.com/apache/cayenne/pull/609#discussion_r1500301392
##########
cayenne/src/main/java/org/apache/cayenne/exp/parser/ASTCustomAggregateFunctionCall.java:
##########
@@ -0,0 +1,34 @@
+package org.apache.cayenne.exp.parser;
+
+import org.apache.cayenne.exp.Expression;
+
+/**
+ * Class for custom aggregation functions expressions.
+ * @since 5.0
+ */
+public class ASTCustomAggregateFunctionCall extends ASTAggregateFunctionCall {
Review Comment:
I think we could shorten name of this class to just `ASTCustomAggregate`
##########
cayenne/src/main/java/org/apache/cayenne/exp/parser/ExpressionParserTreeConstants.java:
##########
@@ -64,6 +64,7 @@ public interface ExpressionParserTreeConstants
public int JJTDBPATH = 58;
public int JJTENUM = 59;
public int JJTDBIDPATH = 60;
+ public int JJTCUSTOMAGGREGATE = 61;
Review Comment:
It is better to leave generation of this constants to JavaCC and just leave 0 as a new AST node id for now.
--
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@cayenne.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org