Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add jar 'myudf.jar'
- CREATE temporary FUNCTION fun1 AS 'myhive.udf.hash' ;
- CREATE temporary FUNCTION fun2 AS 'myhive.udf.hash' ;
- select fun1("abc") // right
- select fun2("abc",1) //error
- class MyUDF extends UDF{
- public String evaluate(String s){
- return s;
- }
- public Integer evaluate(String s, int a){
- return s + String.valueOf(a)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement