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 <ramal...@yahoo.com> 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,

Reply via email to