Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-1686

XMLEncoder failing to serialize classes containing Enums for non-SUN JREs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 0.5.0
    • None
    • None
    • SLES 10 SP2, IBM Java 1.6 SR8

    Description

      If one is using Hive 0.5 with IBM Java 1.6 certain Hive Queries will fail in the Hive CLI, such as "SELECT Count(1) from TABLE" with the error "failed to write expression: GenericUDAFEvaluator$Mode=Class.new()". This is due to the fact that XMLEncoder in the JRE's beans.jar is not able to serialize Classes with Enums without an explicitly having an EnumPersistenceDelegate assigned to each class that needs to be serialized. This was an issue in SUN JDK 1.5 but not 1.6 and is still an issue in IBM Java 1.6.

      Attachments

        1. HIVE-1686.patch
          1 kB
          Stephen Watt

        Activity

          People

            Unassigned Unassigned
            wattsteve Stephen Watt
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: