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

In ExecReducer, remove tag from the row which will be passed to the first Operator at the Reduce-side

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.12.0
    • 0.12.0
    • Query Processor
    • None

    Description

      In ExecReducer, we can see ...

      row.clear();
      row.add(keyObject);
      row.add(valueObject[tag.get()]);
      // The tag is not used any more, we should remove it.
      row.add(tag);
      

      I have seen this for a long time. Actually, we are using

      reducer.process(row, tag.get());
      

      to pass the tag.

      If we do not need to add the tag to a row, we should remove it.

      Attachments

        1. HIVE-4877.1.patch
          50 kB
          Yin Huai
        2. HIVE-4877.patch
          50 kB
          Yin Huai

        Issue Links

          Activity

            People

              yhuai Yin Huai
              yhuai Yin Huai
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: