hive自带函数
oO寒枫Oo
专注spark hadoop mysql
展开
-
hive函数 -- acos
反余弦函数acos(x)定义域 [-1,1] x在其它区间的话 得到的值是null值域 [0,pi]实例: acos(-1) = 3.141592653589793acos(1)=0.0原创 2013-12-04 18:47:33 · 1954 阅读 · 0 评论 -
hive函数 -- asin
反正弦函数asin(x) - returns the arc sine of x if -1asin(x)定义域 [-1,1] x在其它区间的话 得到的值是null值域 [-pi/2,pi/2]实例: asin(-1) = -pi/2asin(1)=pi/2原创 2014-01-02 18:52:40 · 1684 阅读 · 0 评论 -
hive函数 -- ascii
ascii 码函数ascii(str)ascii(str) - returns the numeric value of the first character of str返回 str 第一个字符的ascii 码值 实例:ascii('123') = 49 附录:ascii 码表:http://blog.csdn.net/lxpbs8851/art原创 2013-12-05 17:29:29 · 6791 阅读 · 0 评论 -
hive函数 -- abs
abs(x)abs(x) - returns the absolute value of x返回x的绝对值。原创 2013-12-04 18:34:23 · 15613 阅读 · 0 评论 -
hive函数 -- regexp_extract
regexp_extract(str, regexp[, idx]) - extracts a group that matches regexp原创 2014-09-11 10:17:48 · 58561 阅读 · 2 评论 -
hive函数 -- split 字符串分割函数
hive字符串分割函数split(str, regex) - Splits str around occurances that match regexTime taken: 0.769 seconds, Fetched: 1 row(s)返回值为一个数组例1:split('a,b,c,d',',')得到的结果:["a","b","c","d"] 当然,我们也可原创 2014-01-23 19:03:16 · 262899 阅读 · 2 评论