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

Avro SerDe doesn't handle serializing Nullable types that require access to a Schema

    XMLWordPrintableJSON

Details

    Description

      Deserialization properly handles hiding Nullable Avro types, including complex types like record, map, array, etc. However, when Serialization attempts to write out these types it erroneously makes use of the UNION schema that contains NULL and the other type.

      This results in Schema mis-match errors for Record, Array, Enum, Fixed, and Bytes.

      Here's a review board of unit tests that express the problem, as well as one that supports the case that it's only when the schema is needed.

      Attachments

        1. HIVE-3528.1.patch.txt
          10 kB
          Sean Busbey
        2. HIVE-3528.2.patch.txt
          40 kB
          Sean Busbey

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: