FYI, amped about this feature! Sent from my iPad
On Jan 4, 2012, at 6:40 PM, "Jonathan Coveney (Commented) (JIRA)" <j...@apache.org> wrote: > > [ > https://issues.apache.org/jira/browse/PIG-2317?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13180139#comment-13180139 > ] > > Jonathan Coveney commented on PIG-2317: > --------------------------------------- > > Alan, > > Thank you very much for your comments, and for adding tests (which it was > sorely lacking). Point 1 is indeed an error...this is an artifact of when I > was getting the whole canonicalName piece working, and wanted to force it to > a Long to isolate errors. The switch should be working now. > > To point 2, there are a couple of ways that we can handle it. One would be to > create a DataByteArray class in Ruby which would allow us to do whatever we > wanted. Ruby, natively, does not have a binary type...what people usually do, > AFAIK (someone with deeper knowledge of ruby can chime in), is pack data into > strings. Since we're using JRuby, we can expose things however we like. I'll > think on an elegant solution but you are right, we need to do something else. > > It is a goal of mine to get momentum going again to push this through, so > thank you very much for taking a look and adding the tests. I will get to > work figuring out why they are failing and update these comments. > >> 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: 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 > >