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

Switch to Threaded View
Pig >> mail # user >> in statement

Copy link to this message
Re: in statement
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.


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