[
https://issues.apache.org/jira/browse/PIG-2317?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13129977#comment-13129977
]
Jacob Perkins commented on PIG-2317:
------------------------------------
Combiners from ruby? I like it.
Here's some stylistic nitpicking more than anything. Ruby people are very
particular.
1) Ruby people in general hate camel case for anything except class names. So,
{code}
require 'PigUdf'
# ...
outputSchema "str:chararray"
{code}
should become:
{code}
require 'pigudf'
# ...
output_schema "str:chararray"
{code}
I'm really not kidding.
2) I would argue for 'PigUDF' as opposed to 'PigUdf' if only because UDF is an
acronym.
3) There is tab completion in the universe now. As such we should spell things
like 'AlgPigUdf' out as 'AlgebraicPigUDF
I'll look into making it compatible with 0.9.1, specifically with regards to
the 'addScriptFile' issue.
> 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, pigjruby.rb, pigjruby.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