You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sqoop.apache.org by "Jarek Jarcec Cecho (JIRA)" <ji...@apache.org> on 2015/04/16 00:53:59 UTC

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

Jarek Jarcec Cecho created SQOOP-2305:
-----------------------------------------

             Summary: 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


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)