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

limit can be optimized if the limit is happening on the reducer

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • Query Processor
    • None

    Description

      A query like:

      select ... from A join B.. limit 10;

      where the limit is performed on the reducer can be further optimized.

      Currently, all the operators on the reduce side will be done, but the ExecReducer will un-necessarily deserialize all the rows.
      The following optimizations can be done:

      1. Do nothing in reduce() in ExecReducer.
      2. Modify map-reduce framework so that it does not even invoke the reduce() method in ExecReducer.

      2. may require some work from hadoop - but we should minimally do 1.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              namit Namit Jain
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: