You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Robert Metzger (JIRA)" <ji...@apache.org> on 2016/02/26 13:34:18 UTC

[jira] [Resolved] (FLINK-3449) createInput swallows exception if TypeExtractor fails

     [ https://issues.apache.org/jira/browse/FLINK-3449?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Metzger resolved FLINK-3449.
-----------------------------------
    Resolution: Fixed

Resolved in http://git-wip-us.apache.org/repos/asf/flink/commit/725f7467

> 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)