You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Pradeep Kamath (JIRA)" <ji...@apache.org> on 2009/06/06 00:02:07 UTC

[jira] Created: (PIG-838) Parser does not handle ctrl-m ('\u000d') as argument to PigStorage

Parser does not handle ctrl-m ('\u000d') as argument to PigStorage
------------------------------------------------------------------

                 Key: PIG-838
                 URL: https://issues.apache.org/jira/browse/PIG-838
             Project: Pig
          Issue Type: Bug
    Affects Versions: 0.2.1
            Reporter: Pradeep Kamath


An script which has 
a = load 'input' using PigStorage('\u000d');
 
produces the following error:

2009-06-05 14:47:49,241 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1000: Error during parsing. Lexical error at line 1, column 47.  Encountered: "\r" (13), after : "\'"


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (PIG-838) Parser does not handle ctrl-m ('\u000d') as argument to PigStorage

Posted by "Alan Gates (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-838?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alan Gates reassigned PIG-838:
------------------------------

    Assignee: Xuefu Zhang

> Parser does not handle ctrl-m ('\u000d') as argument to PigStorage
> ------------------------------------------------------------------
>
>                 Key: PIG-838
>                 URL: https://issues.apache.org/jira/browse/PIG-838
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.3.0
>            Reporter: Pradeep Kamath
>            Assignee: Xuefu Zhang
>             Fix For: 0.9.0
>
>
> An script which has 
> a = load 'input' using PigStorage('\u000d');
>  
> produces the following error:
> 2009-06-05 14:47:49,241 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1000: Error during parsing. Lexical error at line 1, column 47.  Encountered: "\r" (13), after : "\'"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (PIG-838) Parser does not handle ctrl-m ('\u000d') as argument to PigStorage

Posted by "Pradeep Kamath (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIG-838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12716769#action_12716769 ] 

Pradeep Kamath commented on PIG-838:
------------------------------------

THe issue might be because we have in QueryParser.jjt:
 JAVA_UNICODE_ESCAPE = true;

which causes the parser to interpret '\u000d' as carriage return - we need for the person to not interpret these unicode escape sequences - however the above option was added to QueryParser.jjt to support unicode constants and such. So we need to find a way to support unicode characters but at the same time be able to handle '\u000d' during parsing.

> Parser does not handle ctrl-m ('\u000d') as argument to PigStorage
> ------------------------------------------------------------------
>
>                 Key: PIG-838
>                 URL: https://issues.apache.org/jira/browse/PIG-838
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.2.1
>            Reporter: Pradeep Kamath
>
> An script which has 
> a = load 'input' using PigStorage('\u000d');
>  
> produces the following error:
> 2009-06-05 14:47:49,241 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1000: Error during parsing. Lexical error at line 1, column 47.  Encountered: "\r" (13), after : "\'"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (PIG-838) Parser does not handle ctrl-m ('\u000d') as argument to PigStorage

Posted by "Olga Natkovich (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-838?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olga Natkovich updated PIG-838:
-------------------------------

    Fix Version/s: 0.9.0

> Parser does not handle ctrl-m ('\u000d') as argument to PigStorage
> ------------------------------------------------------------------
>
>                 Key: PIG-838
>                 URL: https://issues.apache.org/jira/browse/PIG-838
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.3.0
>            Reporter: Pradeep Kamath
>             Fix For: 0.9.0
>
>
> An script which has 
> a = load 'input' using PigStorage('\u000d');
>  
> produces the following error:
> 2009-06-05 14:47:49,241 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1000: Error during parsing. Lexical error at line 1, column 47.  Encountered: "\r" (13), after : "\'"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.