Chesnay Schepler created FLINK-3449:
---------------------------------------

             Summary: createInput swallows exception if TypeExtractor fails
                 Key: FLINK-3449
                 URL: https://issues.apache.org/jira/browse/FLINK-3449
             Project: Flink
          Issue Type: Bug
    Affects Versions: 1.0.0
            Reporter: Chesnay Schepler
            Assignee: Chesnay Schepler
             Fix For: 1.0.0


I've implemented an Inputformat that implements ResultTypeQueryable which is 
used with createInput(<InputFormat>).

When getProducedType() failed i only got an InvalidProgramException, and no 
mention of the original cause.
{code}
Exception in thread "main" org.apache.flink.api.common.InvalidProgramException: 
The type returned by the input format could not be automatically determined. 
Please specify the TypeInformation of the produced type explicitly by using the 
'createInput(InputFormat, TypeInformation)' method instead.
        at 
org.apache.flink.api.java.ExecutionEnvironment.createInput(ExecutionEnvironment.java:555)
        at 
org.apache.flink.api.java.io.jdbc.example.JDBCExample.main(JDBCExample.java:43)
        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:144)
{code}



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

Reply via email to