[jira] [Commented] (FLINK-12401) Support incremental emit for non-window streaming FlatAggregate on Table API

2019-05-23 Thread Hequn Cheng (JIRA)


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

Hequn Cheng commented on FLINK-12401:
-

[~jark] Hi, incremental emit under AccRetract mode has been covered by 
[Flip-29|https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=97552739].
 The `emitValueWithRetract` method will be used to emit incremental 
values(under AccRetract mode). There are also some examples in the doc. The 
`emitValueWithRetract` method will be used in preference to the `emitValue` 
method as it is considered to be more efficient.


> Support incremental emit for non-window streaming FlatAggregate on Table API
> 
>
> Key: FLINK-12401
> URL: https://issues.apache.org/jira/browse/FLINK-12401
> Project: Flink
>  Issue Type: Sub-task
>  Components: Table SQL / API
>Reporter: Hequn Cheng
>Assignee: Hequn Cheng
>Priority: Major
>
> As described in 
> [Flip-29|https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=97552739],
>  there are two output modes for non-window streaming flatAggregate. One is 
> emitting with full values, the other is emitting with incremental values. 
> [FLINK-10977|https://issues.apache.org/jira/browse/FLINK-10977] supports the 
> former one, this jira is going to support the latter one. 



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


[jira] [Commented] (FLINK-12401) Support incremental emit for non-window streaming FlatAggregate on Table API

2019-05-22 Thread Jark Wu (JIRA)


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

Jark Wu commented on FLINK-12401:
-

Do you have a design about incremental emit [~hequn8128] ?  For example, what's 
the API looks like, when will be invoked, what is it used for?

> Support incremental emit for non-window streaming FlatAggregate on Table API
> 
>
> Key: FLINK-12401
> URL: https://issues.apache.org/jira/browse/FLINK-12401
> Project: Flink
>  Issue Type: Sub-task
>  Components: Table SQL / API
>Reporter: Hequn Cheng
>Assignee: Hequn Cheng
>Priority: Major
>
> As described in 
> [Flip-29|https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=97552739],
>  there are two output modes for non-window streaming flatAggregate. One is 
> emitting with full values, the other is emitting with incremental values. 
> [FLINK-10977|https://issues.apache.org/jira/browse/FLINK-10977] supports the 
> former one, this jira is going to support the latter one. 



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


[jira] [Commented] (FLINK-12401) Support incremental emit for non-window streaming FlatAggregate on Table API

2019-05-22 Thread Hequn Cheng (JIRA)


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

Hequn Cheng commented on FLINK-12401:
-

Hi [~sunjincheng121] [~jark], I'm going to support incremental emit under 
AccRetract mode first. Once we support define keys on the output of 
flatAggregate, we can support the AccMode. 

I will also change the title of this jira. Probably name it "Support 
incremental emit under AccRetract mode for non-window streaming FlatAggregate 
on Table API"

What do you think?

> Support incremental emit for non-window streaming FlatAggregate on Table API
> 
>
> Key: FLINK-12401
> URL: https://issues.apache.org/jira/browse/FLINK-12401
> Project: Flink
>  Issue Type: Sub-task
>  Components: Table SQL / API
>Reporter: Hequn Cheng
>Assignee: Hequn Cheng
>Priority: Major
>
> As described in 
> [Flip-29|https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=97552739],
>  there are two output modes for non-window streaming flatAggregate. One is 
> emitting with full values, the other is emitting with incremental values. 
> [FLINK-10977|https://issues.apache.org/jira/browse/FLINK-10977] supports the 
> former one, this jira is going to support the latter one. 



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


[jira] [Commented] (FLINK-12401) Support incremental emit for non-window streaming FlatAggregate on Table API

2019-05-04 Thread Hequn Cheng (JIRA)


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

Hequn Cheng commented on FLINK-12401:
-

[~jark] Hi, great that you are also interested in this.

This jira is going to support emit incremental value either in Acc or 
AccRetract. Whether Acc or AccRetract will be decided by the query. 

As for local-global, I think you raised a good point. Similar to the normal 
Aggregate, flatAggregate could also support local-global and miniBatch. 
However, I planned to support these optimizations later.

What do you think?

> Support incremental emit for non-window streaming FlatAggregate on Table API
> 
>
> Key: FLINK-12401
> URL: https://issues.apache.org/jira/browse/FLINK-12401
> Project: Flink
>  Issue Type: Sub-task
>  Components: Table SQL / API
>Reporter: Hequn Cheng
>Assignee: Hequn Cheng
>Priority: Major
>
> As described in 
> [Flip-29|https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=97552739],
>  there are two output modes for non-window streaming flatAggregate. One is 
> emitting with full values, the other is emitting with incremental values. 
> [FLINK-10977|https://issues.apache.org/jira/browse/FLINK-10977] supports the 
> former one, this jira is going to support the latter one. 



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


[jira] [Commented] (FLINK-12401) Support incremental emit for non-window streaming FlatAggregate on Table API

2019-05-04 Thread Jark Wu (JIRA)


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

Jark Wu commented on FLINK-12401:
-

Incremental value is ACC? Is this issue going to support local-combine + global 
optimization for flatAggregate?

> Support incremental emit for non-window streaming FlatAggregate on Table API
> 
>
> Key: FLINK-12401
> URL: https://issues.apache.org/jira/browse/FLINK-12401
> Project: Flink
>  Issue Type: Sub-task
>  Components: Table SQL / API
>Reporter: Hequn Cheng
>Assignee: Hequn Cheng
>Priority: Major
>
> As described in 
> [Flip-29|https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=97552739],
>  there are two output modes for non-window streaming flatAggregate. One is 
> emitting with full values, the other is emitting with incremental values. 
> [FLINK-10977|https://issues.apache.org/jira/browse/FLINK-10977] supports the 
> former one, this jira is going to support the latter one. 



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