Simple query runs so long

0

I want to get min partitioned date from the view on Athena. For this I have very simple query:

select
min(dt)
from database.my_table

my_table is view

dt is partitioned

Query worked for half an hour after I canceled it. Why it took so long? I expected to receive data in seconds.

已提问 2 年前245 查看次数
2 回答
0

can you please provide table DDL ?

AWS
Alex_T
已回答 2 年前
0

Even though it simple query it all depends on Query used to create the view ? Athena will run the query behind the view and finally min(dt) on that. What kind of Athena data source here ? backed by glue catalog ? if partitioned column like date try to use partition index in glue https://docs.aws.amazon.com/glue/latest/dg/partition-indexes.html

AWS
NishAWS
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则