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

Julien Le Dem commented on PIG-1479:
------------------------------------

Hi Richard,
Some comments about PIG-1479_3.patch:
* The ScriptEngine implementations that can be used are still hardwired. As a 
user I would want to add a parameter to the command line to use my own (adding 
it to the classpath and providing the class name). For example I'm working on a 
javascript implementation for Pig-Greek. Currently I have no way of using it 
without modifying Pig's code.
* I like to not have to define a main() function for the top level code, 
however using regular expressions to separate functions from the main code 
seems at high risk of not working in many cases (in 
JythonScriptEngine.getFunctions(InputStream)). It would be better to trust an 
actual Python parser or to leave it as is: requiring a main() function.

> 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-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.

Reply via email to