You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sqoop.apache.org by "Nick White (JIRA)" <ji...@apache.org> on 2013/02/12 00:19:12 UTC
[jira] [Created] (SQOOP-890) ClassWriter Generates setField Casts
Based on the Output Type, not the Input Type
Nick White created SQOOP-890:
--------------------------------
Summary: ClassWriter Generates setField Casts Based on the Output Type, not the Input Type
Key: SQOOP-890
URL: https://issues.apache.org/jira/browse/SQOOP-890
Project: Sqoop
Issue Type: Bug
Components: codegen
Affects Versions: 1.4.2
Reporter: Nick White
Attachments: SQOOP-890.testcase.patch
I've attached a testcase that exports from a Long column in an avro file to an Integer column in the database. The setField method the ClassWriter generates puts in an (Integer) cast, whereas it should be a (Long) cast. The fix isn't immediately obvious, as the generateSetField currently only has the SQL types, not the input types.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira