AWS雅典娜:如何在特定分区上运行查询

发布于 2025-01-18 20:42:10 字数 489 浏览 1 评论 0原文

我预计“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.

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文