presto变量转化(根据时间格式分别转化为10位unix、13位unix):
select to_unixtime(cast (time as timestamp))
from table1
hive变量转化(只能自动转化为10位unix):
select unix_timestamp(cast (time as timestamp))
from table1
where d = '2017-12-05'
presto变量转化(根据时间格式分别转化为10位unix、13位unix):
select to_unixtime(cast (time as timestamp))
from table1
hive变量转化(只能自动转化为10位unix):
select unix_timestamp(cast (time as timestamp))
from table1
where d = '2017-12-05'