concat only takes two fields at a time. use concat(field1, concat(field2, field3))
Shawn On Tue, Apr 5, 2011 at 3:59 PM, Thejas M Nair <[email protected]> wrote: > > > Do you need the group-key to be concatenated ? If not, you can just group on > all the three columns - > > TCGroupedByFuid = group TCRaw by (SrcFuid.citingdocid, > SrcFuid.col, > SrcFuid.seq); > > If you want the group key to be concatenated for some reason, you can see if > generating a concatenated string helps. > Which version of pig are you using ? From the stack trace, it looks like the > version is an old(er) one. This issue might have been fixed in a newer > version of pig. > > -Thejas > > > On 4/5/11 1:10 PM, "[email protected]" > <[email protected]> wrote: > > > dump TCRaw; > TCGroupedByFuid = group TCRaw by CONCAT((chararray)SrcFuid.citingdocid, > SrcFuid.col, > (chararray)SrcFuid.seq); > store TCGroupedByFuid into 'foo'; > >
