Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Pig, mail # user - about distinct


Copy link to this message
-
Re: about distinct
Thejas Nair 2012-03-15, 22:46
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