Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想查找一个字符串是否包含 Pig 中的另一个字符串。我发现有一个内置index函数,但它只搜索字符而不是字符串。
index
还有其他选择吗?
你可以使用这个:
X = FILTER A BY (f1 matches '.*the_word_you're_looking_for.*');
更多信息在这里: http: //pig.apache.org/docs/r0.10.0/basic.html#comparison