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

Fixes in Hive UDF to be usable in Pig

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.2.0
    • UDF
    • None
    • Reviewed

    Description

      There are issues in UDF never get exposed because the execution path is never tested:

      1. Assume the ObjectInspector to be WritableObjectInspector not the ObjectInspector pass to UDF
      2. Assume the input parameter to be Writable not respecting the ObjectInspector pass to UDF
      3. Assume ConstantObjectInspector to be WritableConstantXXXObjectInspector
      4. The InputObjectInspector does not match OutputObjectInspector of previous stage in UDAF
      5. The execution path involving convertIfNecessary is never been tested

      Attach a patch to fix those.

      Attachments

        1. HIVE-9767.3.patch
          37 kB
          Daniel Dai
        2. HIVE-9767.2.patch
          37 kB
          Daniel Dai
        3. HIVE-9767.1.patch
          37 kB
          Daniel Dai

        Issue Links

          Activity

            People

              daijy Daniel Dai
              daijy Daniel Dai
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: