flink-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefano Bortoli (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FLINK-4909) JDBC Input format cast exception management
Date Tue, 25 Oct 2016 13:20:58 GMT
Stefano Bortoli created FLINK-4909:

             Summary: JDBC Input format cast exception management
                 Key: FLINK-4909
                 URL: https://issues.apache.org/jira/browse/FLINK-4909
             Project: Flink
          Issue Type: Improvement
          Components: Batch Connectors and Input/Output Formats
    Affects Versions: 1.1.1
            Reporter: Stefano Bortoli
            Priority: Minor

When setting the type settings for the JDBC Input Format one can easily make errors in setting
the correct type (e.g. INT vs DECIMAL, or LONG vs BIG_DECIMAL)

it would be nice to have the class cast Exception to return also the name of field causing
the exception. In a sense, improve the exception message. 

For example: java.lang.ClassCastException: java.math.BigDecimal cannot be cast to java.lang.String

This message was sent by Atlassian JIRA

View raw message