[
https://issues.apache.org/jira/browse/PIG-2507?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13201203#comment-13201203
]
Vivek Padmanabhan commented on PIG-2507:
----------------------------------------
Btw, the same script when run on Pig 0.8 provides the exact source location.
The below is the error message fro, Pig 0.8;
[main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1000: Error during
parsing. Lexical error at line 2, column 45. Encountered: <EOF> after : "\'.;"
> Semicolon in paramenters 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
> Reporter: Vivek Padmanabhan
>
> 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 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