【发布时间】:2020-08-13 08:24:26
【问题描述】:
我们在 athena 中有一个按 processing_date 分区的视图(数据类型:字符串 - 格式 20201231) 我们正在寻找 2020 年的数据。
为了探索,我们需要所有的列。
查询:
select * from online_events_dw_view
where from_iso8601_date(processing_date) > from_iso8601_date('20191231')
错误:
Query exhausted resources at this scale factor
有没有更好的方法来优化查询
【问题讨论】:
-
你能用用于视图的 SQL 更新你的问题吗?当您使用昂贵的运算符处理大量数据时,通常会发生此错误。
标签: sql amazon-web-services presto amazon-athena