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.

asked 2 years ago236 views
2 Answers
0

can you please provide table DDL ?

AWS
Alex_T
answered 2 years ago
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
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions