hive函数及语法说明

hive函数及语法说明

ID:1741373

大小:95.75 KB

页数:32页

时间:2017-11-13

hive函数及语法说明_第1页
hive函数及语法说明_第2页
hive函数及语法说明_第3页
hive函数及语法说明_第4页
hive函数及语法说明_第5页
资源描述:

《hive函数及语法说明》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

1、无线增值产品部Hive函数及语法说明版本:Hive0.7.0.001eagooqi2011-7-19版本日期修订人描述V1.02010-07-20eagooqi初稿2012-1-4Eagooqi

2、

3、、cube目录n函数说明2n内置函数2n增加oracle函数14n增加业务函数17n扩展函数开发规范17n语法说明19n内置语法19n增加语法27n扩展语法开发规范(语法转换)27nORACLEsql对应的hSQL语法支持28n函数说明参考链接:https://cwiki.apache.org/confluence/display/Hive/La

4、nguageManualCLI下,使用以下命令显示最新系统函数说明SHOWFUNCTIONS;DESCRIBEFUNCTION;DESCRIBEFUNCTIONEXTENDED;n内置函数数值函数MathematicalFunctions返回类型函数名称(参数)描述BIGINTround(doublea)返回double类型的四舍五入的BIGINT值ReturnstheroundedBIGINTvalueofthedoubleDOUBLEround(doublea,intd)返回a

5、的d进制的四舍五入值ReturnsthedoubleroundedtoddecimalplacesBIGINTfloor(doublea)返回小于等于a的最大整数值ReturnsthemaximumBIGINTvaluethatisequalorlessthanthedoubleBIGINTceil(doublea),ceiling(doublea)返回a的最小的大于等于a的整数值ReturnstheminimumBIGINTvaluethatisequalorgreaterthanthedoubledoublerand(),rand(in

6、tseed)Returnsarandomnumber(thatchangesfromrowtorow)thatisdistributeduniformlyfrom0to1.Specifiyingtheseedwillmakesurethegeneratedrandomnumbersequenceisdeterministic.doubleexp(doublea)自然指数函数Returnse^awhereeisthebaseofthenaturallogarithmdoubleln(doublea)自然对数函数Returnsthenatura

7、llogarithmoftheargumentdoublelog10(doublea)以10为底对数函数Returnsthebase-10logarithmoftheargumentdoublelog2(doublea)以2为底对数函数Returnsthebase-2logarithmoftheargumentdoublelog(doublebase,doublea)对数函数Returnthebase"base"logarithmoftheargumentdoublepow(doublea,doublep)power(doublea,dou

8、blep)幂运算函数Returna^pdoublesqrt(doublea)开平方函数Returnsthesquarerootofastringbin(BIGINTa)二进制函数Returnsthenumberinbinaryformat(see[http://dev.mysql.com/doc/refman/5.0/en/string-functions.html#function_bin])stringhex(BIGINTa)hex(stringa)十六进制函数Iftheargumentisanint,hexreturnsthenumb

9、erasastringinhexformat.Otherwiseifthenumberisastring,itconvertseachcharacterintoitshexrepresentationandreturnstheresultingstring.(see[http://dev.mysql.com/doc/refman/5.0/en/string-functions.html#function_hex])stringunhex(stringa)反转十六进制函数Inverseofhex.Interpretseachpairofcha

10、ractersasahexidecimalnumberandconvertstothecharacterrepresentedbythenumber.stringconv(BIG

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。