[ https://issues.apache.org/jira/browse/PIG-928?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12879201#action_12879201 ]
Julien Le Dem commented on PIG-928: ----------------------------------- I like the suggestion. However I would prefer not to use namespaces by default. Most likely users will register a few functions and use namespaces only when conflicts happen. The shortest syntax should be used for the most common use case. most of the time: REGISTER /home/alan/myfuncs.py USING python; B = FOREACH A GENERATE a(x); when it is needed: REGISTER /home/alan/myfuncs.py USING python AS myfuncs; B = FOREACH A GENERATE myfuncs.a(x); Also register jar does not prefix classes by the jar name so that would be inconsistent. REGISTER /home/alan/myfuncs.jar; > UDFs in scripting languages > --------------------------- > > Key: PIG-928 > URL: https://issues.apache.org/jira/browse/PIG-928 > Project: Pig > Issue Type: New Feature > Reporter: Alan Gates > Assignee: Aniket Mokashi > Fix For: 0.8.0 > > Attachments: calltrace.png, package.zip, pig-greek.tgz, > pig.scripting.patch.arnab, pyg.tgz, RegisterPythonUDF2.patch, > RegisterScriptUDFDefineParse.patch, scripting.tgz, scripting.tgz, test.zip > > > It should be possible to write UDFs in scripting languages such as python, > ruby, etc. This frees users from needing to compile Java, generate a jar, > etc. It also opens Pig to programmers who prefer scripting languages over > Java. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.