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

Support for SettableUnionObjectInspector and implement isSettable/hasAllFieldsSettable APIs for all data types.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.13.0
    • None
    • None

    Description

      These 3 tasks should be accomplished as part of the following jira:
      1. The current implementation lacks settable union object inspector. We can run into exception inside ObjectInspectorConverters.getConvertedOI() if there is a union.
      2. Implement the following public functions for all datatypes:
      isSettable()-> Perform shallow check to see if an object inspector is inherited from settableOI type and
      hasAllFieldsSettable() -> Perform deep check to see if this objectInspector and all the underlying object inspectors are inherited from settableOI type.
      3. ObjectInspectorConverters.getConvertedOI() is inefficient. Once (1) and (2) are implemented, add the following check: outputOI.hasAllSettableFields() should be added to return outputOI immediately if the object is entirely settable in order to prevent redundant object instantiation.

      Attachments

        1. HIVE-5202.2.patch.txt
          34 kB
          Hari Sankar Sivarama Subramaniyan
        2. HIVE-5202.patch
          34 kB
          Hari Sankar Sivarama Subramaniyan

        Issue Links

          Activity

            People

              hsubramaniyan Hari Sankar Sivarama Subramaniyan
              hsubramaniyan Hari Sankar Sivarama Subramaniyan
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: