[
https://issues.apache.org/jira/browse/FLINK-3449?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15154172#comment-15154172
]
ASF GitHub Bot commented on FLINK-3449:
---------------------------------------
GitHub user zentol opened a pull request:
https://github.com/apache/flink/pull/1675
[FLINK-3449] createInput() no longer swallows exception
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/zentol/flink 3449_input_swallow
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flink/pull/1675.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 #1675
----
commit 400f0b50ac3be65af95307f0e3c212802acac868
Author: zentol <[email protected]>
Date: 2016-02-19T12:39:19Z
[FLINK-3449] createInput() no longer swallows exception
----
> 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)