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.