Hive UDF wip (working prototype)