Hey Kim, You can use the Flatten operator. They don't necessarily stay tuples, but you probably don't need them to.
http://pig.apache.org/docs/r0.7.0/piglatin_ref2.html#Example:+Flattening On Oct 14, 2010, at 10:30 AM, Kim Vogt wrote: > Hi, > > If I have bags that have a dynamic number of fields that look something like > this: > > ("park", "building", "office") > ("store", "school") > ("building", "school", "restaurant", "hotel) > > Is it possible to transform this into one tuple per bag so my data looks > like this and then I can do group bys and counts? Maybe I can do this in an > eval udf? > > ("park") > ("building") > ("office") > ("store") > ... > > > -Kim
