1、Hive中獲取當前的時間:
select from_unixtime(unix_timestamp(),'yyyy-MM-dd HH:mm:ss')
2、Hive中計算時間差:
select datediff('2018-06-04','2018-06-05');
1、Hive中獲取當前的時間:
select from_unixtime(unix_timestamp(),'yyyy-MM-dd HH:mm:ss')
2、Hive中計算時間差:
select datediff('2018-06-04','2018-06-05');