You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pig.apache.org by zaki rahaman <za...@gmail.com> on 2010/03/01 00:50:11 UTC

Re: Filter Inside Nested Foreach

There was an invalid alias error. Initially, I had each of the four nested
relations applying a UDF to do the filtering. When I moved the UDF outside
the foreach so that it was applied once globally and then filtered on the
resulting values inside the foreach, it worked.

On Sun, Feb 28, 2010 at 4:02 PM, Mridul Muralidharan
<mr...@yahoo-inc.com>wrote:

>
> Just curious, what was the actual error with using filter's within nested
> foreach ?
> Will it be possible to show the snippet ? (and schema of input ?).
>
>
> We are using this without issue right now, so curious what the problem here
> is ..
>
> Thanks,
> Mridul
>
>
> On Friday 26 February 2010 03:17 AM, zaki rahaman wrote:
>
>> Seems to work. Before I had my udf embedded inside the foreach and was
>> doing
>> the filter applying it to the fields 4 times... instead I just moved it to
>> an additional column outside of the foreach and it's working
>>
>
>


-- 
Zaki Rahaman