Re: a question about TestAccumulator#testAccumBasic

2015-03-03 Thread Daniel Dai
, org.apache.pig.test.utils.AccumulatorBagCount(A), org.apache.pig.test.utils.BagCount(A); Best regards Zhang,Liyun -Original Message- From: Daniel Dai [mailto:da...@hortonworks.com] Sent: Tuesday, March 03, 2015 3:45 AM To: dev@pig.apache.org Subject: Re: a question about TestAccumulator

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 Zhang, Liyun
, org.apache.pig.test.utils.AccumulatorBagCount(A), org.apache.pig.test.utils.BagCount(A); Best regards Zhang,Liyun -Original Message- From: Daniel Dai [mailto:da...@hortonworks.com] Sent: Tuesday, March 03, 2015 3:45 AM To: dev@pig.apache.org Subject: Re: a question about TestAccumulator

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 liyun.zh...@intel.com wrote: Hi all: I have a question about