You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Timo Walther (JIRA)" <ji...@apache.org> on 2017/01/05 16:01:02 UTC
[jira] [Resolved] (FLINK-4686) Add possibility to get column names
[ https://issues.apache.org/jira/browse/FLINK-4686?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Timo Walther resolved FLINK-4686.
---------------------------------
Resolution: Fixed
Fix Version/s: 1.3.0
Fixed in 1.3.0: 6ac579455115d1062cade8a0453417c9a6ae6a83
> Add possibility to get column names
> -----------------------------------
>
> Key: FLINK-4686
> URL: https://issues.apache.org/jira/browse/FLINK-4686
> Project: Flink
> Issue Type: New Feature
> Components: Table API & SQL
> Reporter: Timo Walther
> Assignee: Jark Wu
> Labels: starter
> Fix For: 1.3.0
>
>
> For debugging and maybe for visualization in future (e.g. in a shell) it would be good to have the possibilty to get the names of {{Table}} columns. At the moment the user has no idea how the table columns are named; if they need to be matched with POJO fields for example.
> My suggestion:
> {code}
> Schema s = table.schema();
> TypeInformation<?> type = s.getType(1);
> TypeInformation<?> type = s.getType("col");
> String s = s.getColumnName(1);
> String[] s = s.getColumnNames();
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)