converting to timestamp with time zone failed on Athena

前端 未结 3 1331
醉话见心
醉话见心 2021-02-19 14:50

I\'m trying to create to following view:

CREATE OR REPLACE VIEW view_events AS 
(
   SELECT
     \"rank\"() OVER (PARTITION BY \"tb1\".\"innerid\" ORDER BY \"tb1         


        
3条回答
  •  無奈伤痛
    2021-02-19 15:19

    You can use the following syntax in Athena over Timestamp data type (dt):

    SELECT id,dt,dt AT TIME ZONE 'America/New_York' as dateTimeNY FROM Table
    

提交回复
热议问题