You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Jonathan Coveney (Created) (JIRA)" <ji...@apache.org> on 2012/04/03 10:54:48 UTC

[jira] [Created] (PIG-2628) Allow in line scripting UDF definitions

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

        

[jira] [Commented] (PIG-2628) Allow in line scripting UDF definitions

Posted by "Jonathan Coveney (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIG-2628?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13249494#comment-13249494 ] 

Jonathan Coveney commented on PIG-2628:
---------------------------------------

Ah, that it is. Does that work? I'm not sure why that ticket was closed... AFAIK that syntax doesn't exist?
                
> 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

        

[jira] [Commented] (PIG-2628) Allow in line scripting UDF definitions

Posted by "Aniket Mokashi (Commented) (JIRA)" <ji...@apache.org>.
    [ 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

        

[jira] [Updated] (PIG-2628) Allow in line scripting UDF definitions

Posted by "Olga Natkovich (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-2628?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olga Natkovich updated PIG-2628:
--------------------------------

    Fix Version/s:     (was: 0.11)
                   0.12

Moving to 0.12 since it is an improvement with no work done yet
                
> 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.12
>
>
> 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
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (PIG-2628) Allow in line scripting UDF definitions

Posted by "Aniket Mokashi (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIG-2628?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13249491#comment-13249491 ] 

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

similar to PIG-1471?
                
> 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