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 01:31:12 UTC

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

Koji Noguchi created PIG-4889:
---------------------------------

             Summary: 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.15.0, 0.14.0, 0.13.0, 0.12.1, 0.11.2
            Reporter: Koji Noguchi
            Assignee: Koji Noguchi
            Priority: Minor


{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)