You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sqoop.apache.org by "Qian Xu (JIRA)" <ji...@apache.org> on 2015/03/08 10:00:46 UTC
[jira] [Updated] (SQOOP-2140) Sqoop2: Cast exception when try to
cast an integer to Avro's Long type
[ https://issues.apache.org/jira/browse/SQOOP-2140?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Qian Xu updated SQOOP-2140:
---------------------------
Fix Version/s: 1.99.6
> 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
> Fix For: 1.99.6
>
>
> 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)