I thin xuefu is right. It would not be a tough thing to do however and would be a good way to begin learnijg the interfaces. You would basically just grow a list of elements and then make a tuple from it. If order matters, make an accumulator. If not, algebraic.
Sent via BlackBerry -----Original Message----- From: Xuefu Zhang <[email protected]> Date: Fri, 11 Mar 2011 22:00:46 To: [email protected]<[email protected]> Reply-To: [email protected] Subject: 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. 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
