AWS雅典娜:如何在特定分区上运行查询
我预计“where”语句会减少查询处理量(3.71G)
SELECT date_diff('day',current_timestamp,insert_time)
FROM "accessagg"."access_agg"
WHERE date_diff('day',current_timestamp,insert_time ) <=2
我的表包含一个“Insert_time”列。 该表没有分区,但据我所知,默认情况下所有现有列都已分区,并且没有选项可以按特定列创建分区。 该表不是基于 S3 存储桶,我使用 Athena CREATE 查询创建了该表
那么如何减少处理?或按此列创建分区。
I expected that the "where" statement will reduce the query processing amount (3.71G)
SELECT date_diff('day',current_timestamp,insert_time)
FROM "accessagg"."access_agg"
WHERE date_diff('day',current_timestamp,insert_time ) <=2
My table contains an "Insert_time" column.
The table is not partitioned but from my knowledge, all the existing columns are partitioned by default and there is no option to create a partition by a specific column.
This table is not based on S3 bucket, I created this table using the Athena CREATE query
So how can I reduce the processing? or create a partition by this column.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论