You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/10/02 07:26:02 UTC

[jira] [Commented] (PIG-2507) Semicolon in parameters for UDF results in parsing error

    [ https://issues.apache.org/jira/browse/PIG-2507?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16187720#comment-16187720 ] 

ASF GitHub Bot commented on PIG-2507:
-------------------------------------

GitHub user deepika087 opened a pull request:

    https://github.com/apache/pig/pull/32

    Fixed the PIG-2507: related to grunt error

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/deepika087/pig branch-0.7

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/pig/pull/32.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #32
    
----
commit 050a4697408acbe62a0d87398d35f821c36479ad
Author: Deepika Anand <de...@deepikas-macbook-pro-2.local>
Date:   2017-10-02T07:23:50Z

    Fixed the PIG-2507: related to grunt error

----


> Semicolon in parameters for UDF results in parsing error
> --------------------------------------------------------
>
>                 Key: PIG-2507
>                 URL: https://issues.apache.org/jira/browse/PIG-2507
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.8.0, 0.9.1, 0.10.0, 0.11, 0.11.1
>            Reporter: Vivek Padmanabhan
>            Assignee: Timothy Chen
>             Fix For: 0.12.0, 0.11.2
>
>         Attachments: PIG_2507.patch
>
>
> If I have a semicolon in the parameter passed to a udf, the script execution will fail with a parsing error.
> a = load 'i1' as (f1:chararray);
> c = foreach a generate REGEX_EXTRACT(f1, '.;' ,1);
> dump c;
> The above script fails with the below error 
> [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1200: <file test.pig, line 3, column 0>  mismatched character '<EOF>' expecting '''
> Even replacing the semicolon with Unicode \u003B results in the same error.
> c = foreach a generate REGEX_EXTRACT(f1, '.\u003B',1);



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)