如何在prestodb查询中将动态时区传递给AT TIME ZONE运算符?想法是根据联接表将每行时间戳转换为不同的时区。
以下查询引发错误
WITH time_zones as (
SELECT 'America/Los_Angeles' as time_zone
)
SELECT timestamp '2012-10-31 01:00 UTC' AT TIME ZONE time_zone
FROM time_zones
错误
line 5:54: no viable alternative at input 'time zone time_zone' (service: amazonathena; status code: 400; error code: invalidrequestexception; request id: )