PIG 按字符串过滤
PIG filter by string
我正在尝试按字符串进行过滤,但失败了。如何按字符串过滤?我试着在此处查看 http://pig.apache.org/docs/r0.10.0/basic.html#comparison,但匹配仅适用于正则表达式。
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
f = FILTER finished_set BY NOT(item MATCHES '.*0000000000000.*');
我正在尝试按字符串进行过滤,但失败了。如何按字符串过滤?我试着在此处查看 http://pig.apache.org/docs/r0.10.0/basic.html#comparison,但匹配仅适用于正则表达式。
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
f = FILTER finished_set BY NOT(item MATCHES '.*0000000000000.*');