Return-Path: X-Original-To: apmail-flink-issues-archive@minotaur.apache.org Delivered-To: apmail-flink-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 92EE218417 for ; Thu, 3 Mar 2016 09:18:18 +0000 (UTC) Received: (qmail 29522 invoked by uid 500); 3 Mar 2016 09:18:18 -0000 Delivered-To: apmail-flink-issues-archive@flink.apache.org Received: (qmail 29404 invoked by uid 500); 3 Mar 2016 09:18:18 -0000 Mailing-List: contact issues-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flink.apache.org Delivered-To: mailing list issues@flink.apache.org Received: (qmail 29167 invoked by uid 99); 3 Mar 2016 09:18:18 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Mar 2016 09:18:18 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 3822D2C1F5C for ; Thu, 3 Mar 2016 09:18:18 +0000 (UTC) Date: Thu, 3 Mar 2016 09:18:18 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLINK-3486) Use Project to rename all record fields would fail following Project. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FLINK-3486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15177533#comment-15177533 ] ASF GitHub Bot commented on FLINK-3486: --------------------------------------- Github user fhueske closed the pull request at: https://github.com/apache/flink/pull/1738 > 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)