Hi,
I am trying to use REGEX_EXTRACT_ALL with Pig 0.12, but I hit some problems.
1- The javadoc of the REGEX_EXTRACT_ALL should be updated because in the
documentation there is an example for setting its useMatches field with "DEFINE
GREEDY_EXTRACT REGEX_EXTRACT(false);", but this should be "DEFINE
GREEDY_EXTRACT REGEX_EXTRACT_ALL(false);"
2- The previous DEFINE statement does not work:
grunt> DEFINE GREEDY_EXTRACT REGEX_EXTRACT_ALL(false);
2013-10-23 03:24:34,660 [main] ERROR org.apache.pig.tools.grunt.Grunt -
ERROR 1200: <line 1, column 40> mismatched input 'false' expecting
RIGHT_PAREN
Details at logfile:
/home/user/nezih/workspace/feature_engineering/pig_1382523869704.log
I also tried DEFINE GREEDY_EXTRACT REGEX_EXTRACT_ALL('false') but when I
call GREEDY_EXTRACT than I get:
2013-10-23 03:36:39,182 [main] ERROR org.apache.pig.tools.grunt.Grunt -
ERROR 1200: could not instantiate 'REGEX_EXTRACT_ALL' with arguments
'[false]'
Any help appreciated,
Nezih