You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pig.apache.org by Brian Adams <Br...@chacha.com> on 2010/11/11 22:43:27 UTC
NOT MATCHES
Doing a NOT matches of a pattern?
Can you just do a FILTER A BY NOT (matches 'pattern');
Or NOT matches 'pattern';
I have a list of bad words I DO NOT want to match and I am unsure how to
do this with the few hundred words I have.
RE: NOT MATCHES
Posted by Brian Adams <Br...@chacha.com>.
Can't say I have tried any python streaming or such.
I'm pretty newbish in that regard.
-----Original Message-----
From: Sal Uryasev [mailto:SUryasev@linkedin.com]
Sent: Thursday, November 11, 2010 4:48 PM
To: <us...@pig.apache.org>
Subject: Re: NOT MATCHES
You can do this pretty easily with python or perl streaming if you can't
figure out a way in Pig.
On Nov 11, 2010, at 1:43 PM, Brian Adams wrote:
> Doing a NOT matches of a pattern?
>
> Can you just do a FILTER A BY NOT (matches 'pattern');
>
> Or NOT matches 'pattern';
>
> I have a list of bad words I DO NOT want to match and I am unsure how
> to do this with the few hundred words I have.
Re: NOT MATCHES
Posted by Sal Uryasev <SU...@linkedin.com>.
You can do this pretty easily with python or perl streaming if you can't figure out a way in Pig.
On Nov 11, 2010, at 1:43 PM, Brian Adams wrote:
> Doing a NOT matches of a pattern?
>
> Can you just do a FILTER A BY NOT (matches 'pattern');
>
> Or NOT matches 'pattern';
>
> I have a list of bad words I DO NOT want to match and I am unsure how to
> do this with the few hundred words I have.
Re: NOT MATCHES
Posted by Thejas M Nair <te...@yahoo-inc.com>.
This will work with almost any version. If it doesn't work for you, please
let us know.
-Thejas
On 11/11/10 1:59 PM, "Brian Adams" <Br...@chacha.com> wrote:
> Is there a pig version required for this? My understanding was that this did
> NOT work ?
>
>
> From: Thejas M Nair [mailto:tejas@yahoo-inc.com]
> Sent: Thursday, November 11, 2010 4:53 PM
> To: user@pig.apache.org; Brian Adams
> Subject: Re: NOT MATCHES
>
> B = FILTER A BY NOT(field_foo matches 'test');
> -Thejas
>
>
> On 11/11/10 1:43 PM, "Brian Adams" <Br...@chacha.com> wrote:
> Doing a NOT matches of a pattern?
>
> Can you just do a FILTER A BY NOT (matches 'pattern');
>
> Or NOT matches 'pattern';
>
> I have a list of bad words I DO NOT want to match and I am unsure how to
> do this with the few hundred words I have.
>
>
RE: NOT MATCHES
Posted by Brian Adams <Br...@chacha.com>.
Is there a pig version required for this? My understanding was that this
did NOT work ?
From: Thejas M Nair [mailto:tejas@yahoo-inc.com]
Sent: Thursday, November 11, 2010 4:53 PM
To: user@pig.apache.org; Brian Adams
Subject: Re: NOT MATCHES
B = FILTER A BY NOT(field_foo matches 'test');
-Thejas
On 11/11/10 1:43 PM, "Brian Adams" <Br...@chacha.com> wrote:
Doing a NOT matches of a pattern?
Can you just do a FILTER A BY NOT (matches 'pattern');
Or NOT matches 'pattern';
I have a list of bad words I DO NOT want to match and I am unsure how to
do this with the few hundred words I have.
Re: NOT MATCHES
Posted by Thejas M Nair <te...@yahoo-inc.com>.
B = FILTER A BY NOT(field_foo matches 'test');
-Thejas
On 11/11/10 1:43 PM, "Brian Adams" <Br...@chacha.com> wrote:
Doing a NOT matches of a pattern?
Can you just do a FILTER A BY NOT (matches 'pattern');
Or NOT matches 'pattern';
I have a list of bad words I DO NOT want to match and I am unsure how to
do this with the few hundred words I have.