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/17 03:22:39 UTC

[jira] [Updated] (SQOOP-890) ClassWriter Generates setField Casts Based on the Output Type, not the Input Type

     [ https://issues.apache.org/jira/browse/SQOOP-890?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Qian Xu updated SQOOP-890:
--------------------------
    Fix Version/s:     (was: 1.4.6)
                   1.4.7

> 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
>            Assignee: Nick White
>             Fix For: 1.4.7
>
>         Attachments: SQOOP-890.patch, 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 was sent by Atlassian JIRA
(v6.3.4#6332)