Uploaded image for project: 'Sqoop (Retired)'
  1. Sqoop (Retired)
  2. SQOOP-2305

Sqoop2: ConfigUtils is not properly serializing Enum values

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.99.6
    • 1.99.7
    • None
    • None

    Description

      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 class works on String rather then Enum type and hence directly moving value from Configuration object without explicitly casting it to String will fail.

      Attachments

        1. SQOOP-2305.patch
          2 kB
          Jarek Jarcec Cecho

        Issue Links

          Activity

            People

              jarcec Jarek Jarcec Cecho
              jarcec Jarek Jarcec Cecho
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: