You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pig.apache.org by ugo jardonnet <ug...@gmail.com> on 2011/09/02 17:37:58 UTC

Re: Inline Python UDF's

One of the the comments says the following syntax is supported:

DEFINE hellopig org.apache.pig.scripting.jython.JythonFunction('def
helloworld():\n\treturn (\'Hello, World\')',
'x:{t:(word:chararray)}');

Didn't check myself.

2011/7/21 Mark Roddy <ma...@gmail.com>

> According to here:
> http://wiki.apache.org/pig/UDFsUsingScriptingLanguages#Inline_Scripts
>
> Inline definition of scripted UDFs is not supported, and there is a
> reference to a jira issue on this feature:
> https://issues.apache.org/jira/browse/PIG-1471
>
> However, the referenced issue is marked as Closed/Fixed.
>
> Is this a current feature (googling I only found other references to
> this feature not being supported), or should the issue be
> reopened/marked won't fix?
>
> -Mark
>