: Wednesday, March 04, 2015 2:39 AM
To: dev@pig.apache.org
Subject: Re: a question about TestAccumulator#testAccumBasic
In first case Accumulator is get used and the second case is not (believe due
to the second UDF BagCount in the plan). There are certain conditions whether
Accumulator can be used
umulator, so accumulate -> cleanup will be
>called, but no exec. The second case will not use Accumulator, exec will
>be called instead of accumulate -> cleanup.
>
>Daniel
>
>On 3/1/15, 7:21 PM, "Zhang, Liyun" wrote:
>
>>Hi all:
>> I have a question
March 03, 2015 3:45 AM
To: dev@pig.apache.org
Subject: Re: a question about TestAccumulator#testAccumBasic
The first case will use Accumulator, so accumulate -> cleanup will be called,
but no exec. The second case will not use Accumulator, exec will be called
instead of accumulate -> cleanup.
Danie
The first case will use Accumulator, so accumulate -> cleanup will be
called, but no exec. The second case will not use Accumulator, exec will
be called instead of accumulate -> cleanup.
Daniel
On 3/1/15, 7:21 PM, "Zhang, Liyun" wrote:
>Hi all:
> I have a question
Hi all:
I have a question about TestAccumulator#testAccumBasic.
The first pig script: (TestAccumulator line 151~154)
A = load '" + INPUT_FILE1 + "' as (id:int, fruit);
B = group A by id;
C = foreach B generate group,
org.apache.pig.test.utils.AccumulatorBag