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

Switch to Plain View
Pig, mail # user - in statement


+
Fabian Alenius 2012-05-25, 09:47
Copy link to this message
-
Re: in statement
praveenesh kumar 2012-05-25, 10:29
Write a UDF that takes tuples/bag as input. Then do whatever processing you
want to do with the values inside the bag/tuple. Look how COUNT/SUM UDF is
written, you will get better picture.

Thanks,
Praveenesh

On Fri, May 25, 2012 at 3:17 PM, Fabian Alenius <[EMAIL PROTECTED]>wrote:

> Hi,
>
> lets say I have a large tuple or a bag and I want to see if one of the
> fields match a string. How would one do that?
>
> Similarly how do you apply a function to all the fields in a tuple?
>
> Thanks,
>
> Fabian
>
+
Руслан Аль-Факих 2012-05-25, 10:21