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

Extra foreach from ColumnPrune preventing Accumulator usage

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.17.0
    • None
    • None
    • 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-v2.patch
          2 kB
          Koji Noguchi
        2. pig-5224-v1.patch
          2 kB
          Koji Noguchi
        3. pig-5224-v0-testonly.patch
          1 kB
          Koji Noguchi

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: