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

Jacob Perkins commented on PIG-2317:
------------------------------------

Looks like the patch doesn't apply to branch 0.9 anymore. PigContext no longer 
has a method 'addScriptFile' that takes two arguments. This breaks the way 
required libraries are shipped with the job jar.

Also, @Jonathan, Awesome work! Good to have someone with a bit more java 
experience to pick up where I left off :) 

The one minor concern I have is that with your patch a ruby script containing 
udfs can't be evaluated outside the context of the script engine. That is, I 
cant interpret it on the command line without adding the module and class 
definition that you define in JrubyScriptEngine.java. It's pretty minor but it 
sure would be nice to be able to test and debug a udf completely independently 
of Pig itself.

Thoughts?


                
> Ruby/Jruby UDFs
> ---------------
>
>                 Key: PIG-2317
>                 URL: https://issues.apache.org/jira/browse/PIG-2317
>             Project: Pig
>          Issue Type: New Feature
>            Reporter: Jacob Perkins
>            Assignee: Jacob Perkins
>            Priority: Minor
>             Fix For: 0.9.2
>
>         Attachments: jruby_scripting.patch, jruby_scripting_2_real.patch
>
>
> It should be possible to write UDFs in Ruby. These UDFs will be registered in 
> the same way as python and javascript UDFs.

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

        

Reply via email to