[
https://issues.apache.org/jira/browse/PIG-1471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12883327#action_12883327
]
Aniket Mokashi commented on PIG-1471:
-------------------------------------
The proposed syntax is
{code}
define hellopig using org.apache.pig.scripting.jython.JythonScriptEngine as
'@outputSchema("x:{t:(word:chararray)}")\ndef helloworld():\n\treturn ('Hello,
World')';
{code}
> inline UDFs in scripting languages
> ----------------------------------
>
> Key: PIG-1471
> URL: https://issues.apache.org/jira/browse/PIG-1471
> Project: Pig
> Issue Type: New Feature
> Reporter: Aniket Mokashi
> Assignee: Aniket Mokashi
> Fix For: 0.8.0
>
>
> 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. It should be possible to write these scripts inline as part of pig
> scripts. This feature is an extension of
> https://issues.apache.org/jira/browse/PIG-928
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.