Hi all,
REGEX_EXTRACT_ALL and REGEX_EXTRACT UDFs both take a boolean as constructor 
arg. to set their mUseMatches flag. However, when trying to set that boolean 
flag from the grunt shell with DEFINE GREEDY_EXTRACT REGEX_EXTRACT_ALL(false); 
I got an error: [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1200: 
<line 7, column 40> mismatched input 'false' expecting RIGHT_PAREN)

So this is probably because UDFs take string constructor args only. I opened an 
issue for this (PIG-3566) and submitted an initial patch. Please take a look & 
give me your feedback. I also need to update the unit test classes to reflect 
these changes (TestBuiltin class constructs these regex UDFs with boolean 
values, not string so need to also update those).

Thanks,
Nezih

Reply via email to