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

Non-default OI constructors should be supported for backwards compatibility

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.13.0
    • 0.13.0
    • None
    • None
    • Hide
      Apache Hive recommends that custom ObjectInspectors created for use with custom Serdes have a no-argument constructor in addition to their normal constructors for serialization purposes. See HIVE-5380 for more details.
      Show
      Apache Hive recommends that custom ObjectInspectors created for use with custom Serdes have a no-argument constructor in addition to their normal constructors for serialization purposes. See HIVE-5380 for more details.

    Description

      In HIVE-5263 we started serializing OI's when cloning the plan. This was a great boost in speed for many queries. In the future we'd like to stop copying the OI's, perhaps in HIVE-4396.

      Until then Custom Serdes will not work on trunk. This is a fix to allow custom serdes such as the Hive JSon Serde work until we address the fact we don't want to have to copy the OI's. Since this is modifying the byte code, we should recommend that the no-arg constructor be added.

      Attachments

        1. HIVE-5380.patch
          1 kB
          Brock Noland
        2. HIVE-5380.patch
          1 kB
          Brock Noland
        3. HIVE-5380.patch
          1.0 kB
          Brock Noland

        Issue Links

          Activity

            People

              brocknoland Brock Noland
              brocknoland Brock Noland
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: