[ 
https://issues.apache.org/jira/browse/SQOOP-2305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14497222#comment-14497222
 ] 

ASF subversion and git services commented on SQOOP-2305:
--------------------------------------------------------

Commit 36711af547d6d3585bb8f38dd145d0f9ef44ba0b in sqoop's branch 
refs/heads/sqoop2 from [~abec]
[ https://git-wip-us.apache.org/repos/asf?p=sqoop.git;h=36711af ]

SQOOP-2305: Sqoop2: ConfigUtils is not properly serializing Enum values

(Jarek Jarcec Cecho via Abraham Elmahrek)


> Sqoop2: ConfigUtils is not properly serializing Enum values
> -----------------------------------------------------------
>
>                 Key: SQOOP-2305
>                 URL: https://issues.apache.org/jira/browse/SQOOP-2305
>             Project: Sqoop
>          Issue Type: Bug
>    Affects Versions: 1.99.6
>            Reporter: Jarek Jarcec Cecho
>            Assignee: Jarek Jarcec Cecho
>             Fix For: 1.99.7
>
>         Attachments: SQOOP-2305.patch
>
>
> While working on SQOOP-1803, I've noticed that our {{ConfigUtils}} class is 
> not properly seralizing {{enum}} values and those are throwing 
> {{ClassCastException}}.
> The problem is that [Enum 
> model|https://github.com/apache/sqoop/blob/sqoop2/common/src/main/java/org/apache/sqoop/model/MEnumInput.java#L32]
>  class works on {{String}} rather then {{Enum}} type and hence directly 
> moving value from Configuration object without explicitly casting it to 
> {{String}} will fail.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to