[
https://issues.apache.org/jira/browse/FLINK-6569?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16008889#comment-16008889
]
ASF GitHub Bot commented on FLINK-6569:
---------------------------------------
GitHub user haohui opened a pull request:
https://github.com/apache/flink/pull/3890
[FLINK-6569] flink-table KafkaJsonTableSource example doesn't work.
This PR makes the proposed changes on the document and changes the Java
unit tests to reflect the suggested usages of the API.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/haohui/flink FLINK-6569
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flink/pull/3890.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 #3890
----
commit f6f989d10abd2aa08ccdb73d946de21b631ebeea
Author: Haohui Mai <[email protected]>
Date: 2017-05-12T23:12:19Z
[FLINK-6569] flink-table KafkaJsonTableSource example doesn't work.
----
> flink-table KafkaJsonTableSource example doesn't work
> -----------------------------------------------------
>
> Key: FLINK-6569
> URL: https://issues.apache.org/jira/browse/FLINK-6569
> Project: Flink
> Issue Type: Bug
> Components: Documentation, Table API & SQL
> Affects Versions: 1.3.0
> Reporter: Robert Metzger
> Assignee: Haohui Mai
> Fix For: 1.3.0
>
>
> The code example uses
> {code}
> TypeInformation<Row> typeInfo = Types.ROW(
> new String[] { "id", "name", "score" },
> new TypeInformation<?>[] { Types.INT(), Types.STRING(), Types.DOUBLE() }
> );
> {code}
> the correct way of using it is something like
> {code}
> TypeInformation<Row> typeInfo = Types.ROW_NAMED(
> new String[] { "id", "zip", "date" },
> Types.LONG, Types.INT, Types.SQL_DATE);
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)