You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Richard Ding (JIRA)" <ji...@apache.org> on 2011/03/23 23:01:05 UTC

[jira] [Commented] (PIG-1861) The pig script stored in the Hadoop History logs is stored as a concatenated string without whitespace this causes problems when attempting to extract and execute the script

    [ https://issues.apache.org/jira/browse/PIG-1861?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13010477#comment-13010477 ] 

Richard Ding commented on PIG-1861:
-----------------------------------

Patch committed to 0.8 branch.

> The pig script stored in the Hadoop History logs is stored as a concatenated string without whitespace this causes problems when attempting to extract and execute the script
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: PIG-1861
>                 URL: https://issues.apache.org/jira/browse/PIG-1861
>             Project: Pig
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 0.8.0, 0.9.0
>            Reporter: Araceli Henley
>            Assignee: Richard Ding
>             Fix For: 0.8.0, 0.9.0
>
>         Attachments: PIG-1861.patch
>
>
> a = load '$in' using com.yahoo.grid.sath.JobHistoryLoader() as
> (job:map[],maps:bag{},reducers:bag{},other:bag{},conf:map[]);
> The pig script stored in: conf#'pig.script' has the whitespace removed, this makes it difficult to extract and run the
> script. In particular, statements that terminate in ";" work correctly as
> "statement1;statement2;statement99"  but statements that do not end in ";" result in
> "statement1statement2statement3" and it's difficult to parse the pig script and fix the concatenated string.
> There's also a problem with comments as in:
> /*mycomment*//*more comments*/ PIG_CODE //comment PIG_CODE
> On a side note, I also noticed that in many of the scripts the last statement is missing ";"

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira