[ https://issues.apache.org/jira/browse/PIG-2504?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Prashant Kommireddi updated PIG-2504: ------------------------------------- Attachment: PIG-2504.patch It should have been {code} foreach a generate REGEX_EXTRACT('192.168.1.5:8020', '(.*):(.*)', 1); {code} Attaching a patch. > 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 > Assignee: Prashant Kommireddi > Priority: Minor > Attachments: PIG-2504.patch > > > 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