You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Jingsong Lee (Jira)" <ji...@apache.org> on 2019/12/26 09:16:00 UTC

[jira] [Closed] (FLINK-15401) Planner should set sink field names to setKeyFields of upsert sink

     [ https://issues.apache.org/jira/browse/FLINK-15401?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jingsong Lee closed FLINK-15401.
--------------------------------
    Resolution: Duplicate

> 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)