https://www.xavignu.com/?p=1424
Playing with functions in hive