sqoop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Attila Szabo (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SQOOP-890) ClassWriter Generates setField Casts Based on the Output Type, not the Input Type
Date Mon, 30 Oct 2017 14:03:00 GMT

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

Attila Szabo updated SQOOP-890:
-------------------------------
    Fix Version/s:     (was: 1.4.7)
                   1.5.0

> 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.5.0
>
>         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.4.14#64029)

Mime
View raw message