Craig Macdonald a écrit :

(1) Why should a user have to supply the fully qualified name to his user defined function, if all the functions he ever uses are in that package? Obviously, he shouldnt have to, which is why PigContext includes this line:
   packageImportList.add("com.yahoo.pig.yst.sds.ULT.");

I'm asking to add a command that allows me to do something like:
   import uk.ac.gla.terrier.pig
and have that package searched for any functions. Yahoo users have this ability (com.yahoo.pig.yst.sds.ULT. is searched by default), why not everyone else ;-)
[Somewhat similar to the define keyword.]

Reminds me a lot of XQuery "import module namespace" thing

http://www.w3.org/TR/xquery/#dt-module-import

some examples:

import module namespace math = "http://example.org/math-functions";;
declare namespace foo = "http://example.org";;

May be not stick to the same exact syntax but to get some inspiration...




Reply via email to