You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Julien Le Dem (Commented) (JIRA)" <ji...@apache.org> on 2011/10/13 02:41:11 UTC
[jira] [Commented] (PIG-2165) Need a way to deal with params and
param_file in embedded pig in python
[ https://issues.apache.org/jira/browse/PIG-2165?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13126271#comment-13126271 ]
Julien Le Dem commented on PIG-2165:
------------------------------------
Hi Daniel,
This works but I would rather have the parameters set to global variables in the Interpreter.
Using the pre-processor is less intuitive as parameter values will need different escaping depending of the language or the location of the script where they are used. For example in a string vs not. Assigning to a global variable avoids this kind of issue.
Julien
> Need a way to deal with params and param_file in embedded pig in python
> -----------------------------------------------------------------------
>
> Key: PIG-2165
> URL: https://issues.apache.org/jira/browse/PIG-2165
> Project: Pig
> Issue Type: Bug
> Components: impl
> Affects Versions: 0.9.0
> Reporter: Supreeth
> Assignee: Daniel Dai
> Fix For: 0.10
>
> Attachments: PIG-2165-1.patch
>
>
> I am using embedded pig in python and cannot pass param key value pairs to the python script. The only way to pass params seem to be by passing it in the bind command.
> Is there a plan to have command line parameters to a pig embedded python script? Similar needs for param_file and using the environment variables.
> Thanks
> Supreeth
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira