Spark SQL 支持的Hive内置函数
2016-12-20 00:00
621 查看
数学函数
roundbround
floor
ceil
rand
exp
log
pow
sqrt
bin
hex
unhex
abs
pmod
sin
asin
cos
acos
tan
atan
degrees
radians
signum
factorial
cbrt
shiftleft
shiftright
shiftrightunsigned
greatest
least
集合函数
sizearray_contains
sort_array
类型转换函数
日期函数
from_unixtimeunix_timestamp
to_date
year
quarter
month
dayofmonth
dayofyear
hour
minute
second
weekofyear
datediff
date_add
date_sub
from_utc_timestamp
to_utc_timestamp
current_date
current_timestamp
add_months
last_day
next_day
trunc
months_between
date_format
条件函数
nvlCOALESCE
when
isnull
字符函数
asciibase64
concat
concat_ws
decode
encode
format_number
get_json_object
instr
length
locate
lower
lpad
ltrim
format_string 对应Hive中的 printf
regexp_extract
regexp_replace
repeat
reverse
rpad
rtrim
split
substring 对应Hive中的 substr
substring_index
translate
trim
unbase64
upper
initcap
levenshtein
soundex
聚合函数
countsum
avg
min
max
variance
var_samp
stddev_pop
stddev_samp
covar_pop
covar_samp
corr
表生成函数
explodeposexplode
json_tuple
窗口函数
NTILEROW_NUMBER
RANK
DENSE_RANK
CUME_DIST
PERCENT_RANK
LAG
LEAD
参考链接:
Hive2.0函数大全
hive函数大全及使用示例
spark/sql/core/src/main/scala/org/apache/spark/sql/functions.scala
相关文章推荐
- 编译spark源码使sparksql支持hive(cdh的)
- spark sql 访问hive数据时找不mysql的解决方法
- spark sql on hive安装问题解析
- Spark(Hive) SQL中UDF的使用(Python)
- SparkSQL读取Hive中的数据
- spark sql 无法访问 hive metastore问题解决
- Spark SQL Hive Support Demo
- 延云 YDB版本v1.0.5-beta版本上线(支持hive与spark查询) 2015-12-28 13:13 阅读(0)
- Spark-sql支持的sql语法
- hive支持sql大全
- CDH5.5自行编译支持sparkSQL,sparkR
- Spark SQL 1.2(building-spark1.2, sparksql on hive,spark-sql)
- Spark SQL中对Json支持的详细介绍
- Spark SQL中对Json支持的详细介绍
- Spark(Hive) SQL中UDF的使用(Python)
- Spark发布1.2.0 - 支持Netty NIO / SQL增强
- spark-sql访问hive的问题记录
- 编译支持hive的spark assembly
- SparkSQL与Hive的应用关系
- Impala,Hive,SparkSQL数据清洗后对后续查询的影响比较