【Hive】毫秒时间戳格式化

1. 除以1000,再格式化 select from_unixtime(cast(server_time/1000 as bigint), 'yyyy-MM-dd') date from access_log; 2. 字符串切割掉后3位,再格式化 select from_unixtime(cast(substring(server_time, 1, 10) as bigint),'yyyy-MM-
相关文章
相关标签/搜索