0
如果例如我有一個SQL LIKE表達式'%blah%zoop%',那麼我會如何在Pig中編寫它?我只是用*代替%?如何在Pig中使用通配符在中間寫匹配表達式?
如果例如我有一個SQL LIKE表達式'%blah%zoop%',那麼我會如何在Pig中編寫它?我只是用*代替%?如何在Pig中使用通配符在中間寫匹配表達式?
請參閱matches這與sql中的「like」等效。
B = FILTER A BY (fieldname matches '.*blah.*zoop.*');
是的它是正確的 – Madhivanan