【发布时间】:2017-09-13 21:16:11
【问题描述】:
我正在使用下面的代码将其转换为日期格式,但我的输出始终为空。
select from_unixtime(unix_timestamp(b.temp,'yyyyMMdd'), 'yyyyMMdd') as temp1
from
([![enter image description here][1]][1]
select a.*, regexp_replace(a.ao_date,'-','') as temp
from clla_samp_base a
) b ;
非常感谢任何帮助!
【问题讨论】:
标签: date hive unix-timestamp