You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Richard Ding (JIRA)" <ji...@apache.org> on 2010/12/04 01:28:11 UTC

[jira] Updated: (PIG-1479) Embed Pig in scripting languages

     [ https://issues.apache.org/jira/browse/PIG-1479?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard Ding updated PIG-1479:
------------------------------

    Attachment: PIG-1479_4.patch

Attaching patch that addresses above comments:

    *  One can use --embedded option to specify his/her favorite script engine classname or keyword. For example

{code}
java -cp pig.jar:jython.jar org.apache.pig.Main --embedded jython myscript.py
{code} 
    * Implemented the proposed approach of separating frontend control flow script from backend UDF in scripting language. One needs to explicitly register UDF in Pig Latin or embedded Pig.
   * Both compile() and bind() methods return objects. So one can write code in jython script like this:

{code}
results = pig.compile("<Pig Latin>").bind({param:value, ...}).run()
{code}
   * One can also run embedded scripts using PigRunner. 
 





> Embed Pig in scripting languages
> --------------------------------
>
>                 Key: PIG-1479
>                 URL: https://issues.apache.org/jira/browse/PIG-1479
>             Project: Pig
>          Issue Type: New Feature
>            Reporter: Julien Le Dem
>            Assignee: Richard Ding
>             Fix For: 0.9.0
>
>         Attachments: PIG-1479.patch, PIG-1479_2.patch, PIG-1479_3.patch, PIG-1479_4.patch, pig-greek-test.tar, pig-greek-test.tar, pig-greek.tgz
>
>
> It should be possible to embed Pig calls in a scripting language and let functions defined in the same script available as UDFs.
> This is a spin off of https://issues.apache.org/jira/browse/PIG-928 which lets users define UDFs in scripting languages.

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