Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Pig >> mail # user >> about distinct


Copy link to this message
-
Re: about distinct
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
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB