You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Xuefu Zhang (JIRA)" <ji...@apache.org> on 2011/03/15 18:02:29 UTC
[jira] Commented: (PIG-838) Parser does not handle ctrl-m
('\u000d') as argument to PigStorage
[ https://issues.apache.org/jira/browse/PIG-838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13007015#comment-13007015 ]
Xuefu Zhang commented on PIG-838:
---------------------------------
There doesn't seem to be an easy well to support this. If you have String s = new String("\u000d"); you have the same issue in java, where \u000d is interpreted as carriage return.
User is advised to use '\n' or '\r' instead. That is:
a = load 'input' using PigStorage('\n'); or
a = load 'input' using PigStorage('\r');
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira