[ 
https://issues.apache.org/jira/browse/FLINK-1360?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14266189#comment-14266189
 ] 

Stephan Ewen commented on FLINK-1360:
-------------------------------------

Which version are you working with? It should be available in the 0.9 master. 
See 
https://github.com/apache/incubator-flink/blob/master/flink-core/src/main/java/org/apache/flink/api/common/typeinfo/BasicTypeInfo.java

Can you check if the BasicTypeInfo in your version already has the 
"VOID_TYPE_INFO" ?

> Automatic type extraction for Void is missing
> ---------------------------------------------
>
>                 Key: FLINK-1360
>                 URL: https://issues.apache.org/jira/browse/FLINK-1360
>             Project: Flink
>          Issue Type: Bug
>            Reporter: Felix Neutatz
>            Priority: Minor
>
> DataSet<Tuple2<Void,Long>> data = env.fromElements(new 
> Tuple2<Void,Long>(null, 1L));
> data.print();
> throws the following exception:
> Exception in thread "main" 
> org.apache.flink.api.common.functions.InvalidTypesException: Automatic type 
> extraction is not possible on candidates with null values. Please specify the 
> types directly.
>       at 
> org.apache.flink.api.java.typeutils.TypeExtractor.privateGetForObject(TypeExtractor.java:1174)
>       at 
> org.apache.flink.api.java.typeutils.TypeExtractor.getForObject(TypeExtractor.java:1152)
>       at 
> org.apache.flink.api.java.ExecutionEnvironment.fromElements(ExecutionEnvironment.java:540)
>       at 
> org.apache.flink.hadoopcompatibility.mapreduce.example.ParquetOutput.main(ParquetOutput.java:58)
>       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)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to