hive时间戳转换&UDF更新

from_unixtime

时间戳转换,如果带毫秒数的,除以1000.

#1525404208000
select from_unixtime(int('1525404208000'/1000) ,'yyyy/MM/dd HH:mm:ss') as dt;

reload function

今天碰到udf发布后,有时候连接正常,有时候连接不正常。然后问同事,提供了一个这样的命令。

原文地址:https://www.cnblogs.com/30go/p/11329291.html