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

Sqoop QA bot commented on SQOOP-2305:
-------------------------------------

Testing file 
[SQOOP-2305.patch|https://issues.apache.org/jira/secure/attachment/12725717/SQOOP-2305.patch]
 against branch sqoop2 took 0:00:08.791264.

{color:red}Overall:{color} -1 due to an error

{color:red}ERROR:{color} failed to apply patch (exit code 1):
{code}error: patch failed: 
common/src/main/java/org/apache/sqoop/model/ConfigUtils.java:182
error: common/src/main/java/org/apache/sqoop/model/ConfigUtils.java: patch does 
not apply
error: patch failed: 
common/src/test/java/org/apache/sqoop/model/TestConfigUtils.java:20
error: common/src/test/java/org/apache/sqoop/model/TestConfigUtils.java: patch 
does not apply
{code}

{color:green}SUCCESS:{color} Clean was successful

Console output is available 
[here|https://builds.apache.org/job/PreCommit-SQOOP-Build/1282/console].

This message is automatically generated.

> 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