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 # user >> pig support for in operator


Copy link to this message
-
Re: pig support for in operator
I think you can accomplish this task by writing a UDF which takes two arguments,
one for the check list, the other for the value to check, and return a boolean
to indicate if it's true.
Young Wu
 
On Dec 13, 2012, at 6:07 PM, Haitao Yao <[EMAIL PROTECTED]> wrote:

> hi, all
> Can pig support in operator, like this:
>
> A = load 'test_data' as (value);
> B = filter A by value in (1,2,3,4,5);
>
> I think this is really useful.
> thanks.
>
> Haitao Yao
> [EMAIL PROTECTED]
> weibo: @haitao_yao
> Skype:  haitao.yao.final
>
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