hadoop-pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pi Song (JIRA)" <j...@apache.org>
Subject [jira] Updated: (PIG-85) Unable to specify CTRL-A as a delimiter for the PigStorage function
Date Sun, 18 May 2008 14:58:55 GMT

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

Pi Song updated PIG-85:
-----------------------

    Attachment: PIG_85_v3.patch

This patch includes all above plus fixes the backend job submission issue.
The test provided by Olga incorporated.
All tests passed in Local & MapReduce.

@Olga
This line:-
{noformat}
 pigServer.registerQuery("B = load " + tmpFile1 + "using PigStorage('\\u0001') ;");
{noformat}
needs double \ because it has to get through query parser as "\u0001" whereas 
{noformat}
pigServer.store("A", tmpFile1, "PigStorage('\u0001')");
{noformat}
doesn't need because this one doesn't go through query parser.

> Unable to specify CTRL-A as a delimiter for the PigStorage function
> -------------------------------------------------------------------
>
>                 Key: PIG-85
>                 URL: https://issues.apache.org/jira/browse/PIG-85
>             Project: Pig
>          Issue Type: Bug
>            Reporter: Anand Murugappan
>         Attachments: PIG_85_escaping_parameters.patch, PIG_85_v2.patch, PIG_85_v3.patch,
TEST-org.apache.pig.test.TestStore.txt
>
>
> A PIG command like - 
> store abc into 'abc' using PigStorage('\x01');
>  does not recognize hat the user is requesting the data to by ^A separated. Instead the
data that is stored is literally separated by the string '\x01'. 
> Neither does punching in ^A directly through the editor, nor do any other strings like
\u0001 help. 
> Using a ^A directly through the editor complains about it being an invalid XML character
and bails out. 

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


Mime
View raw message