在Presto中投射unix时间

del*_*tap 8 presto

我有自epoch(ms)以来及时存储的时间戳,我想使用格式为'yyyy-mm-dd'的日期查询和显示结果.

小智 13

cast(from_unixtime(unixtime) as date)

有关更多日期时间函数,请参阅https://prestodb.io/docs/current/functions/datetime.html.