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

Switch to Threaded View
Hadoop, mail # user - Pig question


Copy link to this message
-
Re: Pig question
Mathias Herberts 2012-05-03, 19:04
B = GROUP A BY x;

C = FOREACH B GENERATE group,SIZE(B),B;

D = FILTER C BY $1 == N;

On Thu, May 3, 2012 at 8:58 PM, Aleksandr Elbakyan <[EMAIL PROTECTED]> wrote:
> Hello All,
> I was wandering if it is possible to filter all groups in pig which have size N. This sounds like something common but can not find the way to do it
>
> Please help :)
>
>
> Thanks,