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

Avro SerDe can't handle Nullable Enums

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None
    • None

    Description

      If a field has a schema that unions NULL with an enum, Avro fails to resolve the union because Avro SerDe doesn't restore "enumness".

      Since the enum datum is a String, avro internals check the union for a string schema, which is not present.

      Attachments

        1. HIVE-3538.tests.txt
          6 kB
          Sean Busbey

        Issue Links

          Activity

            People

              Unassigned Unassigned
              busbey Sean Busbey
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: