On 3/13/12 9:02 PM, guoyun wrote:



You need to use another nested foreach statement. -

   C = foreach B { B1BAG = foreach A generate b.b1; D = distinct B1BAG;
generate flatten(group), COUNT(D);}

-Thejas


Thanks,but it is not support pig 0.8.0?



It should work in 0.8. Do you get some error ?

Thanks,
Thejas

Reply via email to