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.

gefragt vor 2 Jahren246 Aufrufe
2 Antworten
0

can you please provide table DDL ?

AWS
Alex_T
beantwortet vor 2 Jahren
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
beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen