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