Grokbase Groups Pig user March 2011
FAQ
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
Sent: Friday, March 11, 2011 9:26 PM
To: user@pig.apache.org
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

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 3 | next ›
Discussion Overview
groupuser @
categoriespig, hadoop
postedMar 12, '11 at 5:26a
activeMar 12, '11 at 6:25a
posts3
users3
websitepig.apache.org

People

Translate

site design / logo © 2021 Grokbase