Github user fhueske commented on a diff in the pull request:
https://github.com/apache/flink/pull/3743#discussion_r112488004
--- Diff:
flink-libraries/flink-table/src/main/scala/org/apache/flink/table/expressions/aggregations.scala
---
@@ -35,6 +37,18 @@ abstract sealed class Aggregation extends
UnaryExpression {
* Convert Aggregate to its counterpart in Calcite, i.e. AggCall
*/
private[flink] def toAggCall(name: String)(implicit relBuilder:
RelBuilder): AggCall
+
+ /**
+ * Because SqlAggFunction from Calcite's AggCallImpl is invisible,
--- End diff --
Thanks for the explanation for this method.
Can you update the doc to `Returns the SqlAggFunction for this Aggregation`
and change the method name to `getSqlAggFunction()`? The method does not
convert the Aggregation because the returned SqlAggFunction does not contain
the arguments.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---