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

Cleanup operator initialization

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 0.4.0
    • 0.4.0
    • Query Processor
    • None
    • Reviewed
    • HIVE-405. Cleanup operator initialization. (Prasad Chakka via zshao)

    Description

      We are always passing the same ObjectInspector, so there is no need to pass it again and again in forward.

      Also there is a problem that can ONLY be fixed by passing ObjectInspector in init: Outer Joins - Outer Joins may not be able to get ObjectInspectors for all inputs, as a result, there is no way to construct an output ObjectInspector based on the inputs. Currently we have hard-coded code that assumes joins are always outputting Strings, which did break but was hidden by the old framework (because we do toString() when serializing the output, and toString() is defined for all Java Classes).

      Attachments

        1. hive-405.6.patch
          77 kB
          Prasad Chakka
        2. hive-405.7.patch
          78 kB
          Prasad Chakka
        3. hive-405.9.patch
          89 kB
          Prasad Chakka
        4. hive-405.patch
          38 kB
          Prasad Chakka

        Issue Links

          Activity

            People

              prasadc Prasad Chakka
              zshao Zheng Shao
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: