Function (UDF) automatic namespace resolution is really needed

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


As in the example:

REGISTER /public/share/pig/contrib/piggybank/java/piggybank.jar ;
TweetsInaug  = FILTER Tweets BY 
org.apache.pig.piggybank.evaluation.string.UPPER(text) MATCHES 

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

REGISTER /public/share/pig/contrib/piggybank/java/piggybank.jar ;
TweetsInaug  = FILTER Tweets BY UPPER(text) MATCHES 

I know about the workaround:

define org.apache.pig.piggybank.evaluation.string.UPPER UPPER

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.

Reply via email to