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

Raghu Angadi commented on PIG-2162:
-----------------------------------

There is a related issue with parsing of params inside PIG. We need to escape 
'=' and any space before '=' which specifying params on command line, but there 
is is no such restriction for using '%default'. We might need merge the parser 
for these two. This might a relatively minor tweak to ParamLoader.jj. 

to get equivalent of {{%declare cond 'i == 2'}} we need to use {{ -p cond='i\ 
\=\= 2' }}




> bin/pig should not modify user args
> -----------------------------------
>
>                 Key: PIG-2162
>                 URL: https://issues.apache.org/jira/browse/PIG-2162
>             Project: Pig
>          Issue Type: Bug
>            Reporter: Raghu Angadi
>            Assignee: Raghu Angadi
>         Attachments: PIG-2162.patch
>
>
> PIG launcher script (bin/pig) joins all the user arguments in one string. 
> This leads to confusion when the arguments contain spaces.
> i.e. '{{bin/pig -p sub="i > 2"}}' is should not same as '{{bin/pig -p "sub" 
> "i" ">" "2"}}', but it is.

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

        

Reply via email to