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.

preguntada hace 2 años245 visualizaciones
2 Respuestas
0

can you please provide table DDL ?

AWS
Alex_T
respondido hace 2 años
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
respondido hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas