Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-3410

LimitOptimizer is applied before PartitionFilterOptimizer

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.11.1
    • Fix Version/s: 0.12.0
    • Component/s: None
    • Labels:
      None

      Description

      Consider following script-

      hcat_load = LOAD 'X' using org.apache.hcatalog.pig.HCatLoader();
      hcat_filter = FILTER hcat_load BY (part='Y');
      hcat_limited = limit hcat_filter 5;
      dump hcat_limited;                     
      

      This script is not benefited from LimitOptimizer (pushing limit to loadfunc) because LimitOptimizer is applied before PartitionFilterOptimizer.

        Attachments

        1. PIG-3410.patch
          1 kB
          Aniket Namadeo Mokashi

          Activity

            People

            • Assignee:
              aniket486 Aniket Namadeo Mokashi
              Reporter:
              aniket486 Aniket Namadeo Mokashi
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: