You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Chengxiang Li (JIRA)" <ji...@apache.org> on 2016/02/24 07:44:18 UTC
[jira] [Created] (FLINK-3486) [SQL] Use Project to rename all
record fields would fail following Project.
Chengxiang Li created FLINK-3486:
------------------------------------
Summary: [SQL] Use Project to rename all record fields would fail following Project.
Key: FLINK-3486
URL: https://issues.apache.org/jira/browse/FLINK-3486
Project: Flink
Issue Type: Bug
Reporter: Chengxiang Li
{noformat} val t = CollectionDataSets.get3TupleDataSet(env).toTable
.select('_1 as 'a, '_2 as 'b, '_3 as 'c)
.select('a, 'b)
{noformat}
would throw exception like:
{noformat}
java.lang.IllegalArgumentException: field [a] not found; input fields are: [_1, _2, _3]
at org.apache.calcite.tools.RelBuilder.field(RelBuilder.java:290)
at org.apache.calcite.tools.RelBuilder.field(RelBuilder.java:275)
at org.apache.flink.api.table.plan.RexNodeTranslator$.toRexNode(RexNodeTranslator.scala:80)
at org.apache.flink.api.table.Table$$anonfun$5.apply(table.scala:98)
at org.apache.flink.api.table.Table$$anonfun$5.apply(table.scala:98) {noformat}
new alias names are lost.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)