[jira] [Created] (FLINK-13087) Add group window Aggregate operator to Table API

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (FLINK-13087) Add group window Aggregate operator to Table API

Shang Yuanchun (Jira)
Hequn Cheng created FLINK-13087:
-----------------------------------

             Summary: Add group window Aggregate operator to Table API
                 Key: FLINK-13087
                 URL: https://issues.apache.org/jira/browse/FLINK-13087
             Project: Flink
          Issue Type: Sub-task
          Components: Table SQL / API
            Reporter: Hequn Cheng
            Assignee: Hequn Cheng


Add Group Window 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
 .window(Tumble over 15.minute on 'rowtime as 'w)
 .groupBy('w, 'a) // leave out groupBy-clause to define global aggregates
 .agg(fun: AggregateFunction)  // output has columns 'a, 'b, 'c
 .select('a, 'c, 'w.start)
{code}



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