Table of Contents |
---|
Creating Custom UDFs
First, you need to create a new class that extends UDF, with one or more methods named evaluate.
...
As of Hive 0.13, you can register your function as a permanent UDF either in the current database or in a specified database, as described in Permanent Functions. For example:
Code Block |
---|
create function my_db.my_lower as 'com.example.hive.udf.Lower'; |
...
Code Block |
---|
hive> list jars; my_jar.jar |
See Hive CLI for full syntax and more examples.
As of Hive 0.13, UDFs also have the option of being able to specify required jars in the CREATE FUNCTION statement:
...