AWS Athena - 解释查询计划

AWS Athena - explain query plan

我可以在 AWS Athena 中使用 'explain' 语句吗? (用于查看查询的计划) 我尝试在 Athena 中使用 explain 语句,但遇到以下错误消息。

您的查询有以下错误:

不支持这种类型的查询(服务:AmazonAthena;状态代码:400;错误代码:InvalidRequestException

根据 this EXPLAIN statements are not supported in Athena as of now.If you want to perform the same then you can do it in EMR-Presto by integrating 它与 AWS Glue 目录。

EXPLAIN 语句现在受 Athena 支持。您可以在 AWS documentation.

中找到更多信息