On Sun, Mar 10, 2013 at 11:15 PM, Russell Jurney
<[email protected]> wrote:
> Try:
>
> movie_and_genres = FOREACH movies GENERATE $0,
> (b:bag{t:tuple(i:int)})TOBAG($2 ..) AS genres:b:bag{t:tuple(i:int)};
> foo = foreach movies_and_genres generate SUM(genres) as genre_total;

Hi Russell

Thanks for your help, but I couldn't get this variation to work -- I get

Syntax error, unexpected symbol at or near 'b'

I'm using Pig 0.10



>
>
> Russell Jurney http://datasyndrome.com
>
> On Mar 10, 2013, at 7:45 AM, Nathan Neff <[email protected]> wrote:
>
>> movie_and_genres = FOREACH movies GENERATE $0, TOBAG($2 ..) AS genres;

Reply via email to