You could group by the first column, and then need to write a UDF that takes
every element of a bag and just spits it to a tuple. It's probably worth
thinking about why you want to do this to see if you might be able to avoid
that intermediate UDF.

2011/3/28 mike st. john <[email protected]>

> Is it possible to do a group concat with pig.  i've been trying with no
> success.
>
> basically the data is as follows
>
>
> 1234|test1
> 1234|test2
> 1234|test3
> 1244|test4
> 1244|test5
> etc
> etc
>
> i'm trying to come up with.
>
> 1234|test1 test2 test3
> 1244|test4 test5
>
>
> thanks
> Mike
>

Reply via email to