Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Pig >> mail # user >> Re: Using matches in generate clause?

Copy link to this message
Re: Using matches in generate clause?
What version of Pig are you using?


On Sep 27, 2012, at 8:54 AM, James Kebinger wrote:

> Hello, I'm having some trouble doing something I thought would be easy: I'd
> like to use matches to generate a boolean flag but this seems to not
> compile:
> FOREACH html_pages GENERATE portal_id, html matches 'some pattern' as
> wp_match:boolean;
> I've tried wrapping it in parens too, with no luck.
> Is this possible, or am I out of luck?
> thanks