[
https://issues.apache.org/jira/browse/PIG-2317?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13239595#comment-13239595
]
Jonathan Coveney commented on PIG-2317:
---------------------------------------
Russell: each pass (excluding a couple of the _plus patches), is the full
patch. So you just download the patch, put it in the base directory of a
clean-esque pig folder, and do "patch -p0 < PIG-2317_13.patch"
At that point, you can register a script as:
register 'udf2.rb' using jruby as myfuncs;
And so on. Check out: test/e2e/pig/udfs/ruby/ for two scripts used in the e2e
tests.
Let me rebase a version for a clean apply against 0.10... I wasn't sure if we
were going to have this be in the RC so I've been working against trunk. It
should apply fine against 0.10, just a little offset stuff, so I'll do that in
a little and attach it...but let me know if what I said above doesn't work or
make sense once I do.
> 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: Jonathan Coveney
> Priority: Minor
> Labels: 0.10_blocker
> Fix For: 0.10, 0.11
>
> Attachments: PIG-2317-10.patch, PIG-2317-10_plus.patch,
> PIG-2317-11.patch, PIG-2317-12.patch, PIG-2317-13.patch, PIG-2317-13.patch,
> PIG-2317-13.patch, PIG-2317-8.patch, PIG-2317-8_plus.patch, PIG-2317-9.patch,
> PigUdf.rb, PigUdf.rb, jruby_scripting.patch, jruby_scripting_2_real.patch,
> jruby_scripting_3.patch, jruby_scripting_4.patch, jruby_scripting_5.patch,
> jruby_scripting_6.patch, jruby_scripting_7.patch, pigjruby.rb, pigjruby.rb,
> pigjruby.rb, pigudf.rb
>
>
> 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