[
https://issues.apache.org/jira/browse/FLINK-15401?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17003532#comment-17003532
]
Jingsong Lee commented on FLINK-15401:
--------------------------------------
CC: [~jark] [~ykt836]
> 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)