You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "David Ciemiewicz (JIRA)" <ji...@apache.org> on 2009/06/24 20:56:07 UTC

[jira] Created: (PIG-863) Function (UDF) automatic namespace resolution is really needed

Function (UDF) automatic namespace resolution is really needed
--------------------------------------------------------------

                 Key: PIG-863
                 URL: https://issues.apache.org/jira/browse/PIG-863
             Project: Pig
          Issue Type: Improvement
            Reporter: David Ciemiewicz


The Apache PiggyBank documentation says that to reference a function, I need to specify a function as:

org.apache.pig.piggybank.evaluation.string.UPPER(text)

As in the example:

{code}
REGISTER /public/share/pig/contrib/piggybank/java/piggybank.jar ;
TweetsInaug  = FILTER Tweets BY org.apache.pig.piggybank.evaluation.string.UPPER(text) MATCHES '.*(INAUG|OBAMA|BIDEN|CHENEY|BUSH).*' ;
{code}

Why can't we implement automatic name space resolution as so we can just reference UPPER without namespace qualifiers?

{code}
REGISTER /public/share/pig/contrib/piggybank/java/piggybank.jar ;
TweetsInaug  = FILTER Tweets BY UPPER(text) MATCHES '.*(INAUG|OBAMA|BIDEN|CHENEY|BUSH).*' ;
{code}

I know about the workaround:

{code}
define org.apache.pig.piggybank.evaluation.string.UPPER UPPER
{code}

But this is really a pain to do if I have lots of functions.

Just warn if there is a collision and suggest I use the "define" workaround in the warning messages.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (PIG-863) Function (UDF) automatic namespace resolution is really needed

Posted by "David Ciemiewicz (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIG-863?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12723681#action_12723681 ] 

David Ciemiewicz commented on PIG-863:
--------------------------------------

See related JIRA PIG-112 although I think this one is slightly different.

> Function (UDF) automatic namespace resolution is really needed
> --------------------------------------------------------------
>
>                 Key: PIG-863
>                 URL: https://issues.apache.org/jira/browse/PIG-863
>             Project: Pig
>          Issue Type: Improvement
>            Reporter: David Ciemiewicz
>
> The Apache PiggyBank documentation says that to reference a function, I need to specify a function as:
> org.apache.pig.piggybank.evaluation.string.UPPER(text)
> As in the example:
> {code}
> REGISTER /public/share/pig/contrib/piggybank/java/piggybank.jar ;
> TweetsInaug  = FILTER Tweets BY org.apache.pig.piggybank.evaluation.string.UPPER(text) MATCHES '.*(INAUG|OBAMA|BIDEN|CHENEY|BUSH).*' ;
> {code}
> Why can't we implement automatic name space resolution as so we can just reference UPPER without namespace qualifiers?
> {code}
> REGISTER /public/share/pig/contrib/piggybank/java/piggybank.jar ;
> TweetsInaug  = FILTER Tweets BY UPPER(text) MATCHES '.*(INAUG|OBAMA|BIDEN|CHENEY|BUSH).*' ;
> {code}
> I know about the workaround:
> {code}
> define org.apache.pig.piggybank.evaluation.string.UPPER UPPER
> {code}
> But this is really a pain to do if I have lots of functions.
> Just warn if there is a collision and suggest I use the "define" workaround in the warning messages.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (PIG-863) Function (UDF) automatic namespace resolution is really needed

Posted by "Dmitriy V. Ryaboy (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIG-863?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12723683#action_12723683 ] 

Dmitriy V. Ryaboy commented on PIG-863:
---------------------------------------

I believe PIG-832  addresses this 

> Function (UDF) automatic namespace resolution is really needed
> --------------------------------------------------------------
>
>                 Key: PIG-863
>                 URL: https://issues.apache.org/jira/browse/PIG-863
>             Project: Pig
>          Issue Type: Improvement
>            Reporter: David Ciemiewicz
>
> The Apache PiggyBank documentation says that to reference a function, I need to specify a function as:
> org.apache.pig.piggybank.evaluation.string.UPPER(text)
> As in the example:
> {code}
> REGISTER /public/share/pig/contrib/piggybank/java/piggybank.jar ;
> TweetsInaug  = FILTER Tweets BY org.apache.pig.piggybank.evaluation.string.UPPER(text) MATCHES '.*(INAUG|OBAMA|BIDEN|CHENEY|BUSH).*' ;
> {code}
> Why can't we implement automatic name space resolution as so we can just reference UPPER without namespace qualifiers?
> {code}
> REGISTER /public/share/pig/contrib/piggybank/java/piggybank.jar ;
> TweetsInaug  = FILTER Tweets BY UPPER(text) MATCHES '.*(INAUG|OBAMA|BIDEN|CHENEY|BUSH).*' ;
> {code}
> I know about the workaround:
> {code}
> define org.apache.pig.piggybank.evaluation.string.UPPER UPPER
> {code}
> But this is really a pain to do if I have lots of functions.
> Just warn if there is a collision and suggest I use the "define" workaround in the warning messages.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (PIG-863) Function (UDF) automatic namespace resolution is really needed

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

Olga Natkovich resolved PIG-863.
--------------------------------

    Fix Version/s: 0.7.0
       Resolution: Fixed

This is already fixed as the last comment states

> Function (UDF) automatic namespace resolution is really needed
> --------------------------------------------------------------
>
>                 Key: PIG-863
>                 URL: https://issues.apache.org/jira/browse/PIG-863
>             Project: Pig
>          Issue Type: Improvement
>            Reporter: David Ciemiewicz
>             Fix For: 0.7.0
>
>
> The Apache PiggyBank documentation says that to reference a function, I need to specify a function as:
> org.apache.pig.piggybank.evaluation.string.UPPER(text)
> As in the example:
> {code}
> REGISTER /public/share/pig/contrib/piggybank/java/piggybank.jar ;
> TweetsInaug  = FILTER Tweets BY org.apache.pig.piggybank.evaluation.string.UPPER(text) MATCHES '.*(INAUG|OBAMA|BIDEN|CHENEY|BUSH).*' ;
> {code}
> Why can't we implement automatic name space resolution as so we can just reference UPPER without namespace qualifiers?
> {code}
> REGISTER /public/share/pig/contrib/piggybank/java/piggybank.jar ;
> TweetsInaug  = FILTER Tweets BY UPPER(text) MATCHES '.*(INAUG|OBAMA|BIDEN|CHENEY|BUSH).*' ;
> {code}
> I know about the workaround:
> {code}
> define org.apache.pig.piggybank.evaluation.string.UPPER UPPER
> {code}
> But this is really a pain to do if I have lots of functions.
> Just warn if there is a collision and suggest I use the "define" workaround in the warning messages.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.