[Solved-2 Solutions] How to convert fields to rows in Pig ?
How to convert fields to rows in Pig ?
- Here is an example to convert fields into row
- For each of the fields in the tuple it would create a new tuple with the field value and add it to a databag.
- In your script you could 'FLATTEN' the results and put the single values back into individual tuples.