You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2019/01/02 08:22:30 UTC

[GitHub] sunjincheng121 commented on a change in pull request #7235: [FLINK-10976] [table] Add support for aggregate to table API

sunjincheng121 commented on a change in pull request #7235: [FLINK-10976] [table] Add support for aggregate to table API
URL: https://github.com/apache/flink/pull/7235#discussion_r244672263
 
 

 ##########
 File path: flink-libraries/flink-table/src/main/scala/org/apache/flink/table/api/table.scala
 ##########
 @@ -1226,3 +1301,81 @@ class WindowGroupedTable(
     select(withResolvedAggFunctionCall: _*)
   }
 }
+
+class AggregatedTable(
+    private[flink] val table: Table,
+    private[flink] val groupKeys: Seq[Expression],
+    private[flink] val aggregateFunction: Expression) {
+
+  /**
+    * Performs a selection operation after an aggregate operation. The field expressions
+    * cannot contain table functions and aggregations.
+    *
+    * Example:
+    *
+    * {{{
+    *   val aggFunc: AggregateFunction[_, _] = new MyAggregateFunction
 
 Review comment:
   Remove `AggregateFunction[_, _]`.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services