hadoop-pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Laukik Chitnis (JIRA)" <j...@apache.org>
Subject [jira] Commented: (PIG-1588) Parameter pre-processing of values containing pig positional variables ($0, $1 etc)
Date Wed, 01 Sep 2010 21:02:53 GMT

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

Laukik Chitnis commented on PIG-1588:
-------------------------------------

PIG-1586 is about investigating if the shell script is messing the parameter values. This
jira is about the format of the parameter value itself. Even when we pass the parameter value
through a pig param file, we need to escape the $0, $1 etc with \\$0, \\$1 etc, which was
not the case in earlier versions of Pig.

> Parameter pre-processing of values containing pig positional variables ($0, $1 etc)
> -----------------------------------------------------------------------------------
>
>                 Key: PIG-1588
>                 URL: https://issues.apache.org/jira/browse/PIG-1588
>             Project: Pig
>          Issue Type: Bug
>          Components: impl
>    Affects Versions: 0.7.0
>            Reporter: Laukik Chitnis
>             Fix For: 0.7.0
>
>
> Pig 0.7 requires the positional variables to be escaped by a \\ when passed as part of
a parameter value (either through cmd line param or through param_file), which was not the
case in Pig 0.6 Assuming that this was not an intended breakage of backward compatibility
(could not find it in release notes), this would be a bug.
> For example, We need to pass
> INPUT=CountWords(\\$0,\\$1,\\$2)
> instead of simply
> INPUT=CountWords($0,$1,$2)

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