Sud*_*dar 14 string apache-pig
我想查找一个字符串是否包含Pig中的另一个字符串.我发现有一个内置index函数,但它只搜索字符而不是字符串.
还有其他选择吗?
小智 23
你可以用这个:
X = FILTER A BY (f1 matches '.*the_word_you're_looking_for.*');
Run Code Online (Sandbox Code Playgroud)
更多信息请访问:http://pig.apache.org/docs/r0.10.0/basic.html#comparison