Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id F1370200B29 for ; Wed, 15 Jun 2016 17:06:10 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id F0196160A19; Wed, 15 Jun 2016 15:06:10 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 7B65C160A4D for ; Wed, 15 Jun 2016 17:06:10 +0200 (CEST) Received: (qmail 57060 invoked by uid 500); 15 Jun 2016 15:06:09 -0000 Mailing-List: contact dev-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 dev@flink.apache.org Received: (qmail 57035 invoked by uid 99); 15 Jun 2016 15:06:09 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Jun 2016 15:06:09 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 6AC602C033A for ; Wed, 15 Jun 2016 15:06:09 +0000 (UTC) Date: Wed, 15 Jun 2016 15:06:09 +0000 (UTC) From: "Fabian Hueske (JIRA)" To: dev@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (FLINK-4077) Register Pojo DataSet/DataStream as Table requires alias expression. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 15 Jun 2016 15:06:11 -0000 Fabian Hueske created FLINK-4077: ------------------------------------ Summary: Register Pojo DataSet/DataStream as Table requires alias expression. Key: FLINK-4077 URL: https://issues.apache.org/jira/browse/FLINK-4077 Project: Flink Issue Type: Bug Components: Table API Affects Versions: 1.1.0 Reporter: Fabian Hueske Assignee: Fabian Hueske Fix For: 1.1.0 Registering a Pojo DataSet / DataStream as Table requires alias expressions and does not work with simple field references. However, alias expressions would only be necessary if the fields of the Pojo should be renamed. {code} DataStream persons = ... // DOES NOT WORK tEnv.registerDataStream( "Persons", persons, "name, age, address"); // DOES WORK tEnv.registerDataStream( "Persons", persons, "name AS name, age AS age, address AS address"); {code} We should also allow simple field name references in addition to alias expressions to rename fields. -- This message was sent by Atlassian JIRA (v6.3.4#6332)