April 2016
Beginner
268 pages
5h 32m
English
Built-in functions in Hive sometimes do not fit the requirements of a business use case or when data analytics required some custom manipulation of data based on certain conditions. For such cases, the user needs to define custom logic as a UDF and run it over the data.
For writing a custom function in Hive, you will have to extend a Hive class: org.apache.hadoop.hive.ql.exec.UDF.
Let's understand the concept of creating a custom UDF with the example of creating a function to reverse a string.
The following are the steps to create a custom UDF:
HiveUDF".