Incorrect sample provided for REGEX_EXTRACT
-------------------------------------------
Key: PIG-2504
URL: https://issues.apache.org/jira/browse/PIG-2504
Project: Pig
Issue Type: Improvement
Components: documentation
Affects Versions: 0.9.1
Reporter: Vivek Padmanabhan
Priority: Minor
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 ':'
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira