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

Richard Ding commented on PIG-1819:
-----------------------------------


In this case, you need to escape the $:

{code}
from org.apache.pig.scripting import Pig
... ...
separator = "\\\\$"
results = Pig.compile("""
A = LOAD 'data' USING PigStorage('$separator') AS (a,b,c);
....
""").bind().run()
{code}

> For implicit binding, Jython embedded Pig should skip any variable/value that 
> contains $. 
> ------------------------------------------------------------------------------------------
>
>                 Key: PIG-1819
>                 URL: https://issues.apache.org/jira/browse/PIG-1819
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: Richard Ding
>            Assignee: Richard Ding
>             Fix For: 0.9.0
>
>         Attachments: PIG-1819.patch
>
>
> We use the Pig parameter substitution for the bindings so variable/value that 
> contains $ cannot be used.

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

Reply via email to