SHARE
TWEET

Untitled

a guest Jul 24th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. add jar 'myudf.jar'
  2. CREATE temporary FUNCTION fun1 AS 'myhive.udf.hash' ;
  3. CREATE temporary FUNCTION fun2 AS 'myhive.udf.hash' ;
  4.  
  5. select fun1("abc") // right
  6.  select fun2("abc",1) //error
  7.      
  8. class MyUDF extends UDF{
  9.        public String evaluate(String s){
  10.          return s;
  11.     }
  12.        public Integer evaluate(String s, int a){
  13.          return s + String.valueOf(a)
  14.     }
  15.  
  16.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top