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

Abraham Elmahrek updated SQOOP-890:
-----------------------------------

    Fix Version/s:     (was: 1.4.5)
                   1.4.6

> 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.6
>
>         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.2#6252)

Reply via email to