Hive User Defined Aggregation Function (UDAF)
Sometimes the Hive query you want to write could not be expressed easily using the Hive built-in functions. By writing a user-defined function (UDF), Hive makes it easy to plug in your own processing code and invoke it from a Hive query. There are three types of user-defined functions you …