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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ