[ 
https://issues.apache.org/jira/browse/FLINK-10976?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16709611#comment-16709611
 ] 

ASF GitHub Bot commented on FLINK-10976:
----------------------------------------

dianfu opened a new pull request #7235: [FLINK-10976] [table] Add support for 
aggregate to table API
URL: https://github.com/apache/flink/pull/7235
 
 
   ## What is the purpose of the change
   
   *This pull request adds the aggregate operation to table API.*
   
   ## Brief change log
   
     - *Adds aggregate API to Table and GroupedTable in table.scala and adds 
AggregatedTable in table.scala*
     - *Added tests in AggregateTest, AggregateITCase, 
AggregateStringExpressionTest, AggregateValidationTest*
   
   ## Verifying this change
   
   This change added tests and can be verified as follows:
   
   *(example:)*
     - *Added tests in AggregateTest, AggregateITCase, 
AggregateStringExpressionTest, AggregateValidationTest*
   
   ## Does this pull request potentially affect one of the following parts:
   
     - Dependencies (does it add or upgrade a dependency): (no)
     - The public API, i.e., is any changed class annotated with 
`@Public(Evolving)`: (yes)
     - The serializers: (no)
     - The runtime per-record code paths (performance sensitive): (no)
     - Anything that affects deployment or recovery: JobManager (and its 
components), Checkpointing, Yarn/Mesos, ZooKeeper: (no)
     - The S3 file system connector: (no)
   
   ## Documentation
   
     - Does this pull request introduce a new feature? (yes)
     - If yes, how is the feature documented? (docs)
   

----------------------------------------------------------------
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:
us...@infra.apache.org


> Add Aggregate operator to Table API
> -----------------------------------
>
>                 Key: FLINK-10976
>                 URL: https://issues.apache.org/jira/browse/FLINK-10976
>             Project: Flink
>          Issue Type: Sub-task
>          Components: Table API & SQL
>            Reporter: sunjincheng
>            Assignee: Dian Fu
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.8.0
>
>
> Add Aggregate operator to Table API as described in [Google 
> doc|https://docs.google.com/document/d/1tnpxg31EQz2-MEzSotwFzqatsB4rNLz0I-l_vPa5H4Q/edit#heading=h.q23rny2iglsr].
> The usage:
> {code:java}
> val res = tab
>  .groupBy('a) // leave out groupBy-clause to define global aggregates
>  .agg(fun: AggregateFunction)  // output has columns 'a, 'b, 'c
>  .select('a, 'c)
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to