You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pig.apache.org by Hailey Charlie <ha...@gmail.com> on 2012/10/04 21:17:57 UTC
Removing directory if counts match
Hell There,
I'm trying to create a pig scrip that performs a line count on two
different inputs and deletes one of them if they match up.
Is there any sort of pig or grunt syntax to say if (count1 == count2) rmr
/some/path/
Thanks,
Charlie
Re: Removing directory if counts match
Posted by Jonathan Coveney <jc...@gmail.com>.
No, you cannot do this, but using python for control flow is a good match
for this.
2012/10/4 Hailey Charlie <ha...@gmail.com>
> Hell There,
>
> I'm trying to create a pig scrip that performs a line count on two
> different inputs and deletes one of them if they match up.
>
> Is there any sort of pig or grunt syntax to say if (count1 == count2) rmr
> /some/path/
>
> Thanks,
> Charlie
>