Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Pig >> mail # dev >> getting x records at position y?


Copy link to this message
-
Re: getting x records at position y?
I think you can use LIMIT operator, for example,

tmp = FOREACH input GENERATE $y;
output = LIMIT tmp x;

Jie

On Fri, Dec 2, 2011 at 8:12 AM, Geert Van Landeghem <[EMAIL PROTECTED]>wrote:

> Hello all,
>
> how to fetch x records at position y in a file with pig?
>
>
>
> --
>
>
> --
> *
> kind regards,
>
> Van Landeghem Geert*
> Managing Director
> Foundation.be
>
> Hoekskensweg 12, 9290 Berlare
> btw: BE 0872.859.349
> gsm: +32 477 759533
> web1: http://www.foundation.be
> web2: http://www.relacss.com
>
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB