sqoop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "xiaodong.hu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SQOOP-3008) GenericJdbcPartitioner.constructTextConditions(String, Object, Object, String, String, boolean, boolean) may occur java.lang.ClassCastException
Date Fri, 09 Sep 2016 05:58:20 GMT
xiaodong.hu created SQOOP-3008:
----------------------------------

             Summary: GenericJdbcPartitioner.constructTextConditions(String, Object, Object,
String, String, boolean, boolean) may occur java.lang.ClassCastException
                 Key: SQOOP-3008
                 URL: https://issues.apache.org/jira/browse/SQOOP-3008
             Project: Sqoop
          Issue Type: Bug
          Components: connectors/generic
    Affects Versions: 1.99.7, 1.99.6
            Reporter: xiaodong.hu


org.apache.sqoop.connector.jdbc.GenericJdbcPartitioner.constructTextConditions(String, Object,
Object, String, String, boolean, boolean) 
this function has such cast:
        String lbString = prefix + bigDecimalToText((BigDecimal)lowerBound);
        String ubString = prefix + bigDecimalToText((BigDecimal)upperBound);

and org.apache.sqoop.connector.jdbc.GenericJdbcPartitioner.partitionTextColumn()   has this
statement:
      constructTextConditions(prefix, 0, 0,
        partitionMinValue, partitionMaxValue, true, true)

it will cause java.lang.ClassCastException: java.lang.Integer cannot be cast to java.math.BigDecimal



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

Mime
View raw message