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

Use a combiner for LIMIT with GROUP BY and ORDER BY operators

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • 0.12.0
    • None
    • Query Processor
    • None

    Description

      Operator trees of the following structure can have a memory friendly combiner put in place after the sort-phase

      "GBY-LIM" and "OBY-LIM"

      This will cut down on I/O when spilling to disk and particularly during the merge phase of the reducer.

      There are two possible combiners - LimitNKeysCombiner and LimitNValuesCombiner.

      The first one would be ideal for the GROUP-BY case, while the latter would more useful for the ORDER-BY case.

      The combiners are still relevant even if there are 1:1 forward operators on the reducer side and for small data items, the MR base layer does not run the combiners at all.

      Attachments

        1. HIVE-5093-WIP-01.patch
          13 kB
          Gopal Vijayaraghavan

        Issue Links

          Activity

            People

              gopalv Gopal Vijayaraghavan
              gopalv Gopal Vijayaraghavan
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: