Petro
Petro

Reputation: 3662

PIG filter by string

I'm trying to filter by a string but it fails. How do I filter by String? I tried looking here http://pig.apache.org/docs/r0.10.0/basic.html#comparison but matches only works for regular expressions.

f = FILTER finished_set by item is not matches '.*0000000000000.*';

ERROR org.apache.pig.PigServer - exception during parsing: Error during parsing. mismatched input 'matches' expecting NULL

Upvotes: 0

Views: 740

Answers (1)

nobody
nobody

Reputation: 11090

f = FILTER finished_set BY NOT(item  MATCHES '.*0000000000000.*');

Upvotes: 1

Related Questions