我正在尝试使用Hue Hive / Impala select来查找时间范围,我得到的是
2017-02-22T17:47:54.00+00:00 2017-02-22T17:36:42.00+00:00 2017-02-22T17:33:08.00+00:00
所有都带有T,如何将T改为空格如下:
2017-02-22 17:47:54.00+00:00
我正在使用数据
中的select date_time答案 0 :(得分:0)
<强>蜂房强>
hive> select from_unixtime(unix_timestamp('2017-02-22T17:47:54.00+00:00',"yyyy-MM-dd'T'HH:mm:ss")) as ts;
OK
ts
2017-02-22 17:47:54
<强>帕拉强>
> select from_unixtime(unix_timestamp('2017-02-22T17:47:54.00+00:00',"yyyy-MM-ddTHH:mm:ss")) as ts;
+---------------------+
| ts |
+---------------------+
| 2017-02-22 17:47:54 |
+---------------------+