[ 
https://issues.apache.org/jira/browse/PIG-2628?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13249497#comment-13249497
 ] 

Aniket Mokashi commented on PIG-2628:
-------------------------------------

I think we accepted 
{code}
DEFINE hellopig org.apache.pig.scripting.jython.JythonFunction('def 
helloworld():\n\treturn (\'Hello, World\')', 'x:{t:(word:chararray)}');
{code}
as a solution. It needs to have \t \ns in order to make python happy. It would 
be nice to have a better syntax.
                
> Allow in line scripting UDF definitions
> ---------------------------------------
>
>                 Key: PIG-2628
>                 URL: https://issues.apache.org/jira/browse/PIG-2628
>             Project: Pig
>          Issue Type: Improvement
>            Reporter: Jonathan Coveney
>             Fix For: 0.11
>
>
> For small udfs in scripting languages, it may be cumbersome to force users to 
> make a script, put it on the classpath, ship it, etc. It would be great to 
> support a syntax that allows people to declare UDFs in line (essentially, to 
> define a snippet of code that will be interpreted as a scriptlet)

--
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

        

Reply via email to