hive-third-functions
hive-third-functions copied to clipboard
Some useful custom hive udf functions, especial array, json, math, string functions.
添加工作中需要用到的udf函数
Hello, How to install on remote hadoop nodes from client ?
拉取一下
Bumps hive-jdbc from 0.11.0 to 2.3.4. [](https://help.github.com/articles/configuring-automated-security-fixes) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a...
https://github.com/aaronshan/hive-third-functions/blame/f98fef86d328882c85ea40b69b14375d90d44201/src/main/java/com/github/aaronshan/functions/array/UDFArrayIntersect.java#L160 select default.array_intersect(array("39236600","38943350","39007633"),array("39236600","38943350","39007633","38593565","39165420","39119191","39223090","39273131","39113697","39264583","38643724","39243639","39273301","39153039","39152750","38422867","39194210")); 返回值应该是{"39236600","38943350","39007633"},但实际上只返回了一个。 查看了代码,发现compare方法逻辑错误,应修复为一下: private int compare(ListObjectInspector arrayOI, Object array, int[] positions, int position1, int position2) { ObjectInspector arrayElementOI = arrayOI.getListElementObjectInspector(); Object arrayElementTmp1 = arrayOI.getListElement(array, positions[position1]); Object arrayElementTmp2 =...