hive数据库numeric_HIVE支持的函数

本文介绍了Hive数据库中丰富的函数支持,特别是针对numeric类型的函数。你可以通过`describe function substr`来查看特定函数的说明,或者使用`show functions`列出所有支持的函数。Hive提供的函数包括数学运算、字符串操作、日期处理等多个类别,如substr、abs、avg、date_add等。
摘要由CSDN通过智能技术生成

hive的函数支持还是蛮丰富的,

需要用到hive函数的同志们可以用下列两个命令查询hive支持的函数。

查询函数的说明:

hive> describe

function substr;

OK

substr(str, pos[, len]) - returns the substring of str that starts

at pos and is of length len

Time taken: 0.205 seconds

查询hive支持哪些函数

hive> show

functions;

!

!=

%

&

*

+

-

/

<

<=

<>

=

==

>

>=

^

abs

acos

and

array

array_contains

ascii

asin

atan

avg

bigint

bin

boolean

case

ceil

ceiling

coalesce

concat

concat_ws

conv

cos

count

date_add

date_sub

datediff

day

dayofmonth

degrees

div

double

e

elt

exp

explode

field

find_in_set

float

floor

from_unixtime

get_json_object

hash

hex

histogram_numeric

hour

if

in

index

instr

int

isnotnull

isnull

lcase

length

like

ln

locate

log

log10

log2

lower

lpad

ltrim

map

max

min

minute

month

negative

not

or

parse_url

percentile

pi

pmod

positive

pow

power

radians

rand

regexp

regexp_extract

regexp_replace

repeat

reverse

rlike

round

rpad

rtrim

second

sign

sin

size

smallint

space

split

sqrt

std

stddev

stddev_pop

stddev_samp

string

struct

substr

substring

sum

tan

tinyint

to_date

trim

ucase

unhex

unix_timestamp

upper

var_pop

var_samp

variance

weekofyear

when

xpath

xpath_boolean

xpath_double

xpath_float

xpath_int

xpath_long

xpath_number

xpath_short

xpath_string

year

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值