You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Fabian Hueske (JIRA)" <ji...@apache.org> on 2016/06/17 08:41:05 UTC
[jira] [Closed] (FLINK-4077) Register Pojo DataSet/DataStream as
Table requires alias expression.
[ https://issues.apache.org/jira/browse/FLINK-4077?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Fabian Hueske closed FLINK-4077.
--------------------------------
Resolution: Fixed
Fixed with efc344a4e2ef8ea3e0b1e4da621196e9afeb75cc
> 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 & SQL
> 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<Person> 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)