[
https://issues.apache.org/jira/browse/FLINK-1382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14273508#comment-14273508
]
ASF GitHub Bot commented on FLINK-1382:
---------------------------------------
GitHub user twalthr opened a pull request:
https://github.com/apache/flink/pull/299
[FLINK-1382][java] Adds the new basic types Void and Date to the
TypeInfoParser
See also FLINK-1382.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/twalthr/flink VoidDateFix
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flink/pull/299.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 #299
----
commit 32efe0a2334f76a679624e0625081b6743e7171c
Author: twalthr <[email protected]>
Date: 2015-01-12T11:34:46Z
[FLINK-1382][java] Adds the new basic types Void and Date to the
TypeInfoParser
----
> Void is not added to TypeInfoParser
> -----------------------------------
>
> Key: FLINK-1382
> URL: https://issues.apache.org/jira/browse/FLINK-1382
> Project: Flink
> Issue Type: Bug
> Components: Java API
> Affects Versions: 0.9
> Reporter: Felix Neutatz
> Assignee: Timo Walther
> Priority: Minor
>
> List l = Arrays.asList(new Tuple2<Void,Long>(null, 1L));
> TypeInformation t = TypeInfoParser.parse("Tuple2<Void,Long>");
> DataSet<Tuple2<Void,Long>> data = env.fromCollection(l, t);
> data.print();
> Throws:
> Exception in thread "main" java.lang.IllegalArgumentException: String could
> not be parsed: Class 'Void' could not be found for use as custom object.
> Please note that inner classes must be declared static.
> at
> org.apache.flink.api.java.typeutils.TypeInfoParser.parse(TypeInfoParser.java:90)
> at
> org.apache.flink.hadoopcompatibility.mapreduce.example.ParquetOutput.main(ParquetOutput.java:92)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)
> Caused by: java.lang.IllegalArgumentException: Class 'Void' could not be
> found for use as custom object. Please note that inner classes must be
> declared static.
> at
> org.apache.flink.api.java.typeutils.TypeInfoParser.parse(TypeInfoParser.java:290)
> at
> org.apache.flink.api.java.typeutils.TypeInfoParser.parse(TypeInfoParser.java:133)
> at
> org.apache.flink.api.java.typeutils.TypeInfoParser.parse(TypeInfoParser.java:88)
> ... 6 more
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)