[jira] [Commented] (FLINK-31788) Add back Support emitValueWithRetract for TableAggregateFunction

2024-01-11 Thread Jane Chan (Jira)


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

Jane Chan commented on FLINK-31788:
---

Fixed in master 01569644aedb56f792c7f7e04f84612d405b0bdf

> Add back Support emitValueWithRetract for TableAggregateFunction
> 
>
> Key: FLINK-31788
> URL: https://issues.apache.org/jira/browse/FLINK-31788
> Project: Flink
>  Issue Type: Bug
>  Components: Table SQL / Planner
>Reporter: Feng Jin
>Assignee: Jane Chan
>Priority: Major
>  Labels: pull-request-available
>
> This feature was originally implemented in the old planner: 
> [https://github.com/apache/flink/pull/8550/files]
> However, this feature was not implemented in the new planner , the Blink 
> planner. 
> With the removal of the old planner in version 1.14 
> [https://github.com/apache/flink/pull/16080] , this code was also removed.
>  
> We should add it back. 
>  
> origin discuss link: 
> https://lists.apache.org/thread/rnvw8k3636dqhdttpmf1c9colbpw9svp



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (FLINK-31788) Add back Support emitValueWithRetract for TableAggregateFunction

2023-09-13 Thread Martijn Visser (Jira)


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

Martijn Visser commented on FLINK-31788:


Thanks for driving this [~qingyue]

> Add back Support emitValueWithRetract for TableAggregateFunction
> 
>
> Key: FLINK-31788
> URL: https://issues.apache.org/jira/browse/FLINK-31788
> Project: Flink
>  Issue Type: Bug
>  Components: Table SQL / Planner
>Reporter: Feng Jin
>Assignee: Jane Chan
>Priority: Major
>
> This feature was originally implemented in the old planner: 
> [https://github.com/apache/flink/pull/8550/files]
> However, this feature was not implemented in the new planner , the Blink 
> planner. 
> With the removal of the old planner in version 1.14 
> [https://github.com/apache/flink/pull/16080] , this code was also removed.
>  
> We should add it back. 
>  
> origin discuss link: 
> https://lists.apache.org/thread/rnvw8k3636dqhdttpmf1c9colbpw9svp



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (FLINK-31788) Add back Support emitValueWithRetract for TableAggregateFunction

2023-09-12 Thread lincoln lee (Jira)


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

lincoln lee commented on FLINK-31788:
-

[~qingyue] assigned to you.

> Add back Support emitValueWithRetract for TableAggregateFunction
> 
>
> Key: FLINK-31788
> URL: https://issues.apache.org/jira/browse/FLINK-31788
> Project: Flink
>  Issue Type: Bug
>  Components: Table SQL / Planner
>Reporter: Feng Jin
>Assignee: Jane Chan
>Priority: Major
>
> This feature was originally implemented in the old planner: 
> [https://github.com/apache/flink/pull/8550/files]
> However, this feature was not implemented in the new planner , the Blink 
> planner. 
> With the removal of the old planner in version 1.14 
> [https://github.com/apache/flink/pull/16080] , this code was also removed.
>  
> We should add it back. 
>  
> origin discuss link: 
> https://lists.apache.org/thread/rnvw8k3636dqhdttpmf1c9colbpw9svp



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (FLINK-31788) Add back Support emitValueWithRetract for TableAggregateFunction

2023-09-12 Thread Jane Chan (Jira)


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

Jane Chan commented on FLINK-31788:
---

Hi, according to the discussion, we're one the consensus that we should support 
this feature, please assign the ticket to me, thanks.

> Add back Support emitValueWithRetract for TableAggregateFunction
> 
>
> Key: FLINK-31788
> URL: https://issues.apache.org/jira/browse/FLINK-31788
> Project: Flink
>  Issue Type: Bug
>  Components: Table SQL / Planner
>Reporter: Feng Jin
>Priority: Major
>
> This feature was originally implemented in the old planner: 
> [https://github.com/apache/flink/pull/8550/files]
> However, this feature was not implemented in the new planner , the Blink 
> planner. 
> With the removal of the old planner in version 1.14 
> [https://github.com/apache/flink/pull/16080] , this code was also removed.
>  
> We should add it back. 
>  
> origin discuss link: 
> https://lists.apache.org/thread/rnvw8k3636dqhdttpmf1c9colbpw9svp



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (FLINK-31788) Add back Support emitValueWithRetract for TableAggregateFunction

2023-09-06 Thread Jane Chan (Jira)


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

Jane Chan commented on FLINK-31788:
---

Hi, [~martijnvisser], I've started a 
[discussion|https://lists.apache.org/thread/879yfhy2rkq0mxpot7c6fw4s0cj3dsmp], 
and let's talk there. Cc [~jark] 

> Add back Support emitValueWithRetract for TableAggregateFunction
> 
>
> Key: FLINK-31788
> URL: https://issues.apache.org/jira/browse/FLINK-31788
> Project: Flink
>  Issue Type: Bug
>  Components: Table SQL / Planner
>Reporter: Feng Jin
>Priority: Major
>
> This feature was originally implemented in the old planner: 
> [https://github.com/apache/flink/pull/8550/files]
> However, this feature was not implemented in the new planner , the Blink 
> planner. 
> With the removal of the old planner in version 1.14 
> [https://github.com/apache/flink/pull/16080] , this code was also removed.
>  
> We should add it back. 
>  
> origin discuss link: 
> https://lists.apache.org/thread/rnvw8k3636dqhdttpmf1c9colbpw9svp



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (FLINK-31788) Add back Support emitValueWithRetract for TableAggregateFunction

2023-09-04 Thread Martijn Visser (Jira)


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

Martijn Visser commented on FLINK-31788:


[~qingyue] Will you open a discussion thread on it? I feel like it's a 
regression and we should consider making it available again, but also +1 for 
seeing how many users actually use this

> Add back Support emitValueWithRetract for TableAggregateFunction
> 
>
> Key: FLINK-31788
> URL: https://issues.apache.org/jira/browse/FLINK-31788
> Project: Flink
>  Issue Type: Bug
>  Components: Table SQL / Planner
>Reporter: Feng Jin
>Priority: Major
>
> This feature was originally implemented in the old planner: 
> [https://github.com/apache/flink/pull/8550/files]
> However, this feature was not implemented in the new planner , the Blink 
> planner. 
> With the removal of the old planner in version 1.14 
> [https://github.com/apache/flink/pull/16080] , this code was also removed.
>  
> We should add it back. 
>  
> origin discuss link: 
> https://lists.apache.org/thread/rnvw8k3636dqhdttpmf1c9colbpw9svp



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (FLINK-31788) Add back Support emitValueWithRetract for TableAggregateFunction

2023-09-01 Thread Jane Chan (Jira)


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

Jane Chan commented on FLINK-31788:
---

Sorry for just noticing this issue now. This problem should be a feature 
rollback when deprecating the old planner since 1.15. The method 
`emitUpdateWithRetract` was not called in the codegen, but the [user-defined 
table agg func 
doc|https://nightlies.apache.org/flink/flink-docs-release-1.17/docs/dev/table/functions/udfs/#retraction-example]
 still gives the retract example that evaluates this method.
{quote}Jark: I'm wondering why it is not found for so many years. Does it mean 
users rarely use it?
{quote}
IMO, we can evaluate whether users still need this feature versus the cost of 
fixing it. If we no longer intend to support this method, we can open a 
discussion to deprecate it. Alternatively, it's reasonable to add it back.

> Add back Support emitValueWithRetract for TableAggregateFunction
> 
>
> Key: FLINK-31788
> URL: https://issues.apache.org/jira/browse/FLINK-31788
> Project: Flink
>  Issue Type: Bug
>  Components: Table SQL / Planner
>Reporter: Feng Jin
>Priority: Major
>
> This feature was originally implemented in the old planner: 
> [https://github.com/apache/flink/pull/8550/files]
> However, this feature was not implemented in the new planner , the Blink 
> planner. 
> With the removal of the old planner in version 1.14 
> [https://github.com/apache/flink/pull/16080] , this code was also removed.
>  
> We should add it back. 
>  
> origin discuss link: 
> https://lists.apache.org/thread/rnvw8k3636dqhdttpmf1c9colbpw9svp



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (FLINK-31788) Add back Support emitValueWithRetract for TableAggregateFunction

2023-04-13 Thread Feng Jin (Jira)


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

Feng Jin commented on FLINK-31788:
--

[~jark]  This question is from a user mail.   

The origin discuss link: 

[https://lists.apache.org/thread/rnvw8k3636dqhdttpmf1c9colbpw9svp]

> Add back Support emitValueWithRetract for TableAggregateFunction
> 
>
> Key: FLINK-31788
> URL: https://issues.apache.org/jira/browse/FLINK-31788
> Project: Flink
>  Issue Type: Bug
>  Components: Table SQL / Planner
>Reporter: Feng Jin
>Priority: Major
>
> This feature was originally implemented in the old planner: 
> [https://github.com/apache/flink/pull/8550/files]
> However, this feature was not implemented in the new planner , the Blink 
> planner. 
> With the removal of the old planner in version 1.14 
> [https://github.com/apache/flink/pull/16080] , this code was also removed.
>  
> We should add it back. 
>  
> origin discuss link: 
> https://lists.apache.org/thread/rnvw8k3636dqhdttpmf1c9colbpw9svp



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (FLINK-31788) Add back Support emitValueWithRetract for TableAggregateFunction

2023-04-13 Thread Jark Wu (Jira)


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

Jark Wu commented on FLINK-31788:
-

Thanks for pointing out this [~hackergin]. If it's true, I think it makes sense 
to add it back. 

By the way, are you using this UDTAF?  I'm wondering why it is not found for so 
many years. Does it mean users rarely use it?

> Add back Support emitValueWithRetract for TableAggregateFunction
> 
>
> Key: FLINK-31788
> URL: https://issues.apache.org/jira/browse/FLINK-31788
> Project: Flink
>  Issue Type: Bug
>  Components: Table SQL / Planner
>Reporter: Feng Jin
>Priority: Major
>
> This feature was originally implemented in the old planner: 
> [https://github.com/apache/flink/pull/8550/files]
> However, this feature was not implemented in the new planner , the Blink 
> planner. 
> With the removal of the old planner in version 1.14 
> [https://github.com/apache/flink/pull/16080] , this code was also removed.
>  
> We should add it back. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (FLINK-31788) Add back Support emitValueWithRetract for TableAggregateFunction

2023-04-13 Thread Feng Jin (Jira)


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

Feng Jin commented on FLINK-31788:
--

[~jark]  I'm sorry, I wrote the wrong name.  It should be 
{{{}emitUpdateWithRetract{}}}.   

I found that there is a relevant definition of {{emitUpdateWithRetract}} 
function in the code, and it is indeed checked during the validation phase. 
However, I did not find any relevant methods during codegen

> Add back Support emitValueWithRetract for TableAggregateFunction
> 
>
> Key: FLINK-31788
> URL: https://issues.apache.org/jira/browse/FLINK-31788
> Project: Flink
>  Issue Type: Bug
>  Components: Table SQL / Planner
>Reporter: Feng Jin
>Priority: Major
>
> This feature was originally implemented in the old planner: 
> [https://github.com/apache/flink/pull/8550/files]
> However, this feature was not implemented in the new planner , the Blink 
> planner. 
> With the removal of the old planner in version 1.14 
> [https://github.com/apache/flink/pull/16080] , this code was also removed.
>  
> We should add it back. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (FLINK-31788) Add back Support emitValueWithRetract for TableAggregateFunction

2023-04-13 Thread Jark Wu (Jira)


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

Jark Wu commented on FLINK-31788:
-

Hi [~hackergin], it seems the {{emitValueWithRetract}} was never introduced. 
[FLIP-29|https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=97552739]
 proposed {{emitValueWithRetract}}, but it was implemented as 
{{emitUpdateWithRetract}} in the first [PR| 
https://github.com/apache/flink/pull/8550/files] (I don't know why the method 
name was changed), and the {{emitUpdateWithRetract}} is still supported in the 
latest version in the blink planner. 

> Add back Support emitValueWithRetract for TableAggregateFunction
> 
>
> Key: FLINK-31788
> URL: https://issues.apache.org/jira/browse/FLINK-31788
> Project: Flink
>  Issue Type: Bug
>  Components: Table SQL / Planner
>Reporter: Feng Jin
>Priority: Major
>
> This feature was originally implemented in the old planner: 
> [https://github.com/apache/flink/pull/8550/files]
> However, this feature was not implemented in the new planner , the Blink 
> planner. 
> With the removal of the old planner in version 1.14 
> [https://github.com/apache/flink/pull/16080] , this code was also removed.
>  
> We should add it back. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (FLINK-31788) Add back Support emitValueWithRetract for TableAggregateFunction

2023-04-13 Thread Timo Walther (Jira)


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

Timo Walther commented on FLINK-31788:
--

This looks like a regression to me. Does anyone from the original Blink mergers 
have context on this? [~jark] [~lzljs3620320]

> Add back Support emitValueWithRetract for TableAggregateFunction
> 
>
> Key: FLINK-31788
> URL: https://issues.apache.org/jira/browse/FLINK-31788
> Project: Flink
>  Issue Type: Bug
>  Components: Table SQL / Planner
>Reporter: Feng Jin
>Priority: Major
>
> This feature was originally implemented in the old planner: 
> [https://github.com/apache/flink/pull/8550/files]
> However, this feature was not implemented in the new planner , the Blink 
> planner. 
> With the removal of the old planner in version 1.14 
> [https://github.com/apache/flink/pull/16080] , this code was also removed.
>  
> We should add it back. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (FLINK-31788) Add back Support emitValueWithRetract for TableAggregateFunction

2023-04-12 Thread Martijn Visser (Jira)


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

Martijn Visser commented on FLINK-31788:


[~twalthr] WDYT?

> Add back Support emitValueWithRetract for TableAggregateFunction
> 
>
> Key: FLINK-31788
> URL: https://issues.apache.org/jira/browse/FLINK-31788
> Project: Flink
>  Issue Type: Bug
>  Components: Table SQL / Planner
>Reporter: Feng Jin
>Priority: Major
>
> This feature was originally implemented in the old planner: 
> [https://github.com/apache/flink/pull/8550/files]
> However, this logic was not implemented in the new planner , the Blink 
> planner. 
> With the removal of the old planner in version 1.14 
> [https://github.com/apache/flink/pull/16080] , this code was also removed.
>  
> We should add it back. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)