You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Daniel Dai (JIRA)" <ji...@apache.org> on 2014/01/31 19:24:11 UTC

[jira] [Comment Edited] (PIG-1244) parameter syntax in scripts, add support for ${VAR} (in addition to current $VAR)

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

Daniel Dai edited comment on PIG-1244 at 1/31/14 6:24 PM:
----------------------------------------------------------

Yes, not sure which Jira but it is fixed in Pig 0.12.0.


was (Author: daijy):
Yes, not sure which Jira but it is fixed in Pig 0.12.1.

> parameter syntax in scripts, add support for ${VAR} (in addition to current $VAR)
> ---------------------------------------------------------------------------------
>
>                 Key: PIG-1244
>                 URL: https://issues.apache.org/jira/browse/PIG-1244
>             Project: Pig
>          Issue Type: Improvement
>          Components: impl
>         Environment: all
>            Reporter: Alejandro Abdelnur
>            Assignee: Xuefu Zhang
>            Priority: Minor
>             Fix For: 0.12.0
>
>
> Currently parameter syntax in pig scripts is $VAR.
> This complicates scripts as parameter-literal concatenation is not supported. For example:
> An occurrence of '$OUT_tmp' in a script resolves to a parameter 'OUT_tmp', it would be desirable this to resolve to a contactenation of $OUT&_tmp
> This can be solved by supporting parameter syntax ${VAR}, so the pig parser can identify the end of the parameter name.
> Adding support for ${VAR} syntax in addition of $VAR would maintain backwards compatibility. Changing to syntax ${VAR} syntax will break backwards compatibility.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)