【hive 自定义函数种类】


根据用户自定义函数类别分为以下三种:

(1)UDF(User-Defined-Function)

一进一出

(2)UDAF(User-Defined Aggregation Function)

聚集函数,多进一出
类似于:count/max/min

(3)UDTF(User-Defined Table-Generating Functions)

一进多出
如 lateral view explode()