You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sqoop.apache.org by "Abraham Elmahrek (JIRA)" <ji...@apache.org> on 2015/04/16 01:03:02 UTC

[jira] [Commented] (SQOOP-2305) Sqoop2: ConfigUtils is not properly serializing Enum values

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

Abraham Elmahrek commented on SQOOP-2305:
-----------------------------------------

+1

> 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)