You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Dawid Wysakowicz (Jira)" <ji...@apache.org> on 2020/05/07 11:20:00 UTC
[jira] [Closed] (FLINK-17420) Cannot alias Tuple and Row fields
when converting DataStream to Table
[ https://issues.apache.org/jira/browse/FLINK-17420?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dawid Wysakowicz closed FLINK-17420.
------------------------------------
Fix Version/s: 1.10.2
1.11.0
Resolution: Fixed
Implemented in 1.10.2 via: 9e2cf0187accfd7f120cc8d8e5e684e40aea12ac
> Cannot alias Tuple and Row fields when converting DataStream to Table
> ---------------------------------------------------------------------
>
> Key: FLINK-17420
> URL: https://issues.apache.org/jira/browse/FLINK-17420
> Project: Flink
> Issue Type: Bug
> Components: Table SQL / API
> Affects Versions: 1.10.0
> Reporter: Gyula Fora
> Assignee: Leonard Xu
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.11.0, 1.10.2
>
>
> It is impossible to alias Tuple and Row fields when converting DataStream to Table.
> {code:java}
> tableEnv.fromDataStream(env.fromElements(Tuple2.of("a", 1)), "f0 as name, f1 as age");
> {code}
> This leads to the following error:
> Alias 'name' is not allowed if other fields are referenced by position
> org.apache.flink.table.typeutils.FieldInfoUtils#isReferenceByPosition method
> More info: [https://lists.apache.org/thread.html/re35f37797692af4e9e0e2512dedf0f598e0cdbe1ac4820103d4273c1%40%3Cuser.flink.apache.org%3E]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)