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

Switch to Threaded View
Pig >> mail # user >> Newbie question on bags/tuples

Copy link to this message
RE: Newbie question on bags/tuples
You probably needs a UDF that takes a bag and produces a tuple that combines all tuples in the bag. I'm not sure if there is such a UDF in Piggybank. The flatten clause doesn't do what you want.


-----Original Message-----
From: Mark [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 11, 2011 9:26 PM
Subject: Newbie question on bags/tuples

Sorry if butcher the terminology I'm still new to Pig but Ill try my best.
Given a bag of tuples how can I create a flattened version of all the tuples?
For example say I have {(1), (2), (3)} how can I produce? (1,2,3).