You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/02/29 16:37:18 UTC
[jira] [Commented] (FLINK-3486) Use Project to rename all record
fields would fail following Project.
[ https://issues.apache.org/jira/browse/FLINK-3486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15172010#comment-15172010 ]
ASF GitHub Bot commented on FLINK-3486:
---------------------------------------
GitHub user fhueske opened a pull request:
https://github.com/apache/flink/pull/1738
[FLINK-3486] [tableAPI] Fix broken renaming of all fields.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/fhueske/flink tableAllRenameFix
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flink/pull/1738.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1738
----
commit de6dd97a79549b3d2d38c294e21c4027788b2f90
Author: Fabian Hueske <fh...@apache.org>
Date: 2016-02-29T15:34:24Z
[FLINK-3486] [tableAPI] Fix broken renaming of all fields.
----
> 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
> Components: Table API
> Reporter: Chengxiang Li
> Assignee: Fabian Hueske
>
> {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)