You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Prashant Kommireddi (Updated) (JIRA)" <ji...@apache.org> on 2012/02/03 22:20:53 UTC

[jira] [Updated] (PIG-2504) Incorrect sample provided for REGEX_EXTRACT

     [ https://issues.apache.org/jira/browse/PIG-2504?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Prashant Kommireddi updated PIG-2504:
-------------------------------------

    Patch Info: Patch Available
    
> 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