我使用unnest在雅典娜查询中更多地展平多个数组。当数组有一些记录时,它会返回正确的结果。但是当第二个数组为空时,它不会返回任何记录。有没有人可以告诉我如何在一个查询中取消嵌套多个数组?array_agg(distinct example.devop),';'),array_join(array_agg(distinct example.devs),';') from example 当第二个数组为空时
在下表中,我要筛选包含名称Alice的所有行。--------------------------+ 如果用户是一个字符串,我可以说: SELECT * from data where users like '%Alice%' 但是用户是一个结构数组array<struct<name:string>> 我在Amazon AWS Athena which uses Presto 0.172上执行查询。
我试图在presto中更改时间戳的时区,但是,当我将列的类型转换回时间戳时,时区校正被恢复。我需要将其转换为timestamp/bigint/string,以便能够在模式中存储数据,因为该模式不存储列类型timestamp-timezone。/ Athena?How do I convert a string which is actually a date with timezone to a timestamp in Presto?有没