You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/06/20 13:45:00 UTC
[jira] [Commented] (FLINK-6956) Table examples broken
[ https://issues.apache.org/jira/browse/FLINK-6956?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16055771#comment-16055771 ]
ASF GitHub Bot commented on FLINK-6956:
---------------------------------------
GitHub user zentol opened a pull request:
https://github.com/apache/flink/pull/4148
[FLINK-6956] Make table example POJO classes public
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/zentol/flink 6956
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flink/pull/4148.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 #4148
----
commit 5a97dcd245dcf62a8001a9b9c5d351557c9b64fa
Author: zentol <ch...@apache.org>
Date: 2017-06-20T13:42:13Z
[FLINK-6956] Make table example POJO classes public
----
> Table examples broken
> ---------------------
>
> Key: FLINK-6956
> URL: https://issues.apache.org/jira/browse/FLINK-6956
> Project: Flink
> Issue Type: Bug
> Components: Examples, Table API & SQL
> Affects Versions: 1.4.0
> Reporter: Chesnay Schepler
> Assignee: Chesnay Schepler
> Fix For: 1.4.0
>
>
> When running the examples you get this exception:
> {code}
> Caused by: org.apache.flink.table.api.TableException: Class 'class org.apache.flink.table.examples.java.WordCountSQL$WC' described in type information 'GenericType<org.apache.flink.table.examples.java.WordCountSQL.WC>' must be static and globally accessible.
> at org.apache.flink.table.api.TableException$.apply(exceptions.scala:53)
> at org.apache.flink.table.api.TableEnvironment$.validateType(TableEnvironment.scala:936)
> at org.apache.flink.table.api.TableEnvironment.getFieldInfo(TableEnvironment.scala:616)
> at org.apache.flink.table.api.BatchTableEnvironment.registerDataSetInternal(BatchTableEnvironment.scala:248)
> at org.apache.flink.table.api.java.BatchTableEnvironment.registerDataSet(BatchTableEnvironment.scala:129)
> at org.apache.flink.table.examples.java.WordCountSQL.main(WordCountSQL.java:53)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.apache.flink.client.program.PackagedProgram.callMainMethod(PackagedProgram.java:525)
> ... 13 more
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)