RE: a question about TestAccumulator#testAccumBasic

2015-03-03 Thread Zhang, Liyun
: 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

Re: a question about TestAccumulator#testAccumBasic

2015-03-03 Thread Daniel Dai
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

RE: a question about TestAccumulator#testAccumBasic

2015-03-03 Thread Zhang, Liyun
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

Re: a question about TestAccumulator#testAccumBasic

2015-03-02 Thread Daniel Dai
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

a question about TestAccumulator#testAccumBasic

2015-03-01 Thread Zhang, Liyun
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