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

Switch to Threaded View
Pig >> mail # user >> Flatten a Bag on One Line?


Copy link to this message
-
Flatten a Bag on One Line?
This is probably easy, but my PigLatin is rusty, and I don't seem to be
able to find an answer on Google. If I have a record of the form:

     98812   3       {(48567859),(15996334),(15897772)}

How can I flatten that bag to leave all members on a single row, ie:

     98812    3    48567859    15996334    15897772

Cheers,
Eli