Hive(三)-内置函数-类型转换函数

Return Type

Name(Signature)

Description

binary

binary(string|binary)

将输入的值转换成二进制

Expected "=" to follow "type"   

cast(expr as <type>)

将expr转换成type类型 如:cast("1" as BIGINT) 将字符串1转换成了BIGINT类型,如果转换失败将返回NULL。

猜你喜欢

转载自www.cnblogs.com/sunziying/p/9068781.html