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

LimitOptimizer is applied before PartitionFilterOptimizer

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.11.1
    • 0.12.0
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: