|
|
-
Re: Extracting only the first tuple out of a bagGianmarco De Francisci Mo... 2012-04-12, 14:42
Hi,
TOP should do the trick http://pig.apache.org/docs/r0.9.2/func.html#topx Cheers, -- Gianmarco On Thu, Apr 12, 2012 at 09:01, keeyong han <[EMAIL PROTECTED]> wrote: > > I have a bag consisting of tuples and I would like to extract only the > first tuple out of bag. I don't know whether this is supposed to be hard > but I can't think of how. Only way I can think of is to write a UDF ... > Please help :) > Thanks in advance!-Keeyong |