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

Leonard Xu commented on FLINK-15401:
------------------------------------

Hi ,[~lzljs3620320] 
I think this is a duplicate issue with 
https://issues.apache.org/jira/browse/FLINK-15383?filter=12347488

And I'm preparing the PR for this issue.

 

> Planner should set sink field names to setKeyFields of upsert sink
> ------------------------------------------------------------------
>
>                 Key: FLINK-15401
>                 URL: https://issues.apache.org/jira/browse/FLINK-15401
>             Project: Flink
>          Issue Type: Bug
>          Components: Table SQL / Planner
>            Reporter: Jingsong Lee
>            Priority: Major
>             Fix For: 1.10.0
>
>
> There is a upsert sink my_sink with schema (a int, cnt int).
> SQL:
> {code:java}
> INSERT INTO my_sink SELECT a, count(*) from my_source group by a;{code}
> will work.
> But:
> {code:java}
> INSERT INTO my_sink SELECT b, count(*) from my_source group by b;
> {code}
> will fail. Because the name "b" not match "a".
> Now, we just pass field names from plan to setKeyFields. We need pass field 
> names from sink.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to