Filter a string on the basis of a word

前端 未结 1 664
情书的邮戳
情书的邮戳 2021-02-09 05:55

I have a pig job where in I need to filter the data by finding a word in it,

Here is the snippet

A = LOAD \'/home/user/filename\' USING PigStorage(\',\')         


        
1条回答
  •  粉色の甜心
    2021-02-09 06:12

    MATCHES uses regular expressions. You should do ... MATCHES '.*WORD.*' instead.

    These is an example here finding the word 'apache'.

    0 讨论(0)
提交回复
热议问题