Hive 如何在配置单元中获取当前unix时代
这是unix_timestamp提供的函数,但已被弃用Hive 如何在配置单元中获取当前unix时代,hive,hiveql,epoch,Hive,Hiveql,Epoch,这是unix_timestamp提供的函数,但已被弃用 select unix_timestamp() from table_name limit 1; unix_timestamp(void) is deprecated. Use current_timestamp instead. OK 1553706841 建议改用当前_时间戳,但不给出历元时间: select current_timestamp() from table_name limit 1; OK 2019-03-27 13:1
select unix_timestamp() from table_name limit 1;
unix_timestamp(void) is deprecated. Use current_timestamp instead.
OK
1553706841
建议改用当前_时间戳,但不给出历元时间:
select current_timestamp() from table_name limit 1;
OK
2019-03-27 13:14:21.767
获取当前unix历元时间的推荐方法是什么?您可以使用unix\u时间戳和字符串格式的datetime/date参数来获取历元
select unix_timestamp(current_timestamp())
请注意,自版本2.0以来,不带参数的unix_时间戳函数已被弃用,而不是unix_时间戳字符串日期