One of the columns in my relation contains separation values (e.g. csv) and I want to split them so that I have an entry in the relation for each value (in combination with other columns that have atomic values). For example, if I had the following data:
SomeID|Age|CommaSeperatedNames 1 |23 |Steve,Joe,Bob 2 |26 |Dan,Mike,Tom
I would like the resulting ratio to contain:
SomeID|Age|Names 1 |23 |Steve 1 |23 |Joe 1 |23 |Bob 2 |26 |Dan 2 |26 |Mike 2 |26 |Tom
Can this be done using only PigLatin and the UDFS built-in / piggy bank? Note. I have a hacker solution using UDF that I wrote, I would like to know if this is possible with only Pig.
source share