[
https://issues.apache.org/jira/browse/SQOOP-2305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14497260#comment-14497260
]
Abraham Elmahrek commented on SQOOP-2305:
-----------------------------------------
Simply committed before Pre-commit hook could run. Above exception is expected.
> 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)