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

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.12.0
    • Fix Version/s: 0.12.0
    • Component/s: Query Processor
    • Labels:
      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.patch
          50 kB
          Yin Huai
        2. HIVE-4877.1.patch
          50 kB
          Yin Huai

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: