hadoop-pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Ciemiewicz (JIRA)" <j...@apache.org>
Subject [jira] Commented: (PIG-863) Function (UDF) automatic namespace resolution is really needed
Date Wed, 24 Jun 2009 18:58:07 GMT

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


Mime
View raw message