Qian Xu created SQOOP-2140:
------------------------------

             Summary: Sqoop2: Cast exception when try to cast an integer to 
Avro's Long type
                 Key: SQOOP-2140
                 URL: https://issues.apache.org/jira/browse/SQOOP-2140
             Project: Sqoop
          Issue Type: Bug
    Affects Versions: 1.99.6
            Reporter: Qian Xu
            Assignee: Qian Xu


The test scenario is to export a mysql table into a Kite Avro dataset. The 
mysql table has a ID column INT(8). Sqoop will use FixedPoint in schema. Now 
extractor tries to read a Sqoop record (Object[] data) and make it a 
GenericRecord for Avro. As column[0] is FixedPoint, it is expected to be 
converted as an Avro's Long. Actually the type of data[0] is a Integer. Direct 
cast Integer to Long does not work. The issue also impacts Short and Byte.



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

Reply via email to