You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Koji Noguchi (JIRA)" <ji...@apache.org> on 2016/05/10 03:08:12 UTC

[jira] [Updated] (PIG-4889) Replacing backslash fails as lexical error

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

Koji Noguchi updated PIG-4889:
------------------------------
    Attachment: pig-4889-v01_notestcase.patch

Uploading a patch that would match 
{noformat}
\\
{noformat} 
over 
{noformat}
\'
{noformat}

I'll add some tests tomorrow.

> Replacing backslash fails as lexical error 
> -------------------------------------------
>
>                 Key: PIG-4889
>                 URL: https://issues.apache.org/jira/browse/PIG-4889
>             Project: Pig
>          Issue Type: Bug
>          Components: parser
>    Affects Versions: 0.11.2, 0.12.1, 0.13.0, 0.14.0, 0.15.0
>            Reporter: Koji Noguchi
>            Assignee: Koji Noguchi
>            Priority: Minor
>         Attachments: pig-4889-v01_notestcase.patch
>
>
> {code:title:test.pig}
> A = load 'input.txt' as (url:chararray);
> B = foreach A generate REPLACE(url, '\\\\', '') as url2:chararray;
> DUMP B;
> {code}
> fails with 
> {panel}
> 2016-05-09 21:27:09,670 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1000: Error during parsing. Lexical error at line 4, column 0.  Encountered: <EOF> after : ""
> {panel}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)