[
https://issues.apache.org/jira/browse/SQOOP-2305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14497328#comment-14497328
]
Hudson commented on SQOOP-2305:
-------------------------------
SUCCESS: Integrated in Sqoop2-hadoop200 #827 (See
[https://builds.apache.org/job/Sqoop2-hadoop200/827/])
SQOOP-2305: Sqoop2: ConfigUtils is not properly serializing Enum values (abe:
https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=36711af547d6d3585bb8f38dd145d0f9ef44ba0b)
* common/src/main/java/org/apache/sqoop/model/ConfigUtils.java
* common/src/test/java/org/apache/sqoop/model/TestConfigUtils.java
> 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)