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.
Thanks, Xuefu -----Original Message----- From: Mark [mailto:[email protected]] Sent: Friday, March 11, 2011 9:26 PM To: [email protected] 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). Thanks
