It seems like I'm getting closer:

With this data:

Toy Story|0
GoldenEye|0|1|0|1

And this script:

movies = load 'movies' USING PigStorage('|');
movie_and_genres = FOREACH movies GENERATE $0, TOTUPLE($1 ..);
DUMP movie_and_genres;
describe movie_and_genres;

I get this output:

(Toy Story,(0))
(GoldenEye,(0,1,0,1))
movie_and_genres: {bytearray,()}

Reply via email to