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

Extra foreach from ColumnPrune preventing Accumulator usage

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.17.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      A = load 'input' as (id:int, fruit);
      B = foreach A generate id; -- to enable columnprune
      C = group B by id;
      D = foreach C {
          o = order B by id;
          generate org.apache.pig.test.utils.AccumulatorBagCount(o);
      }
      STORE D into ...
      

      Pig fails to use Accumulator interface for this UDF.

        Attachments

        1. pig-5224-v0-testonly.patch
          1 kB
          Koji Noguchi
        2. pig-5224-v1.patch
          2 kB
          Koji Noguchi
        3. pig-5224-v2.patch
          2 kB
          Koji Noguchi

          Activity

            People

            • Assignee:
              knoguchi Koji Noguchi
              Reporter:
              knoguchi Koji Noguchi
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: