Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
0.9.1
-
None
-
Patch Available
-
Reviewed
Description
The sample provided for REGEX_EXTRACT is not working
http://pig.apache.org/docs/r0.9.2/func.html#regex-extract
a = load 'i1';
b = foreach a generate REGEX_EXTRACT('192.168.1.5:8020', '(.):(.)', 1);
dump b;
The script will fail with the below error;
ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1200: <file test.pig, line 2, column 63> Unexpected character ':'