Is it Possible Delete Table (or Rows from Table) Using Amazon Athena?

0

I am using Athena together with SQL Alchemy ORM. I just created a table (for testing some machine learning model integration) and pushed some data to it using SQL Alchemy ORM. But unfortunately, I can neither delete the table, nor the rows inside it. I tried both of these commands on the Athena query editor.

DELETE FROM tensorflow_clustering;
DROP TABLE tensorflow_clustering;

Both failing. This is the error message for dropping table, for example.

FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:Insufficient Lake Formation permission(s): Required Drop on tensorflow_clustering (Service: AmazonDataCatalog; Status Code: 400; Error Code: AccessDeniedException; Request ID: 8d2b9a82-6e50-4fdd-9b7e-09804f6445bc; Proxy: null))

Is it possible to drop tables and rows in athena at all?

已提问 5 个月前579 查看次数
1 回答
0

Hi,

Could you check if your user has Lake Formation permissions to delete rows or drop tables? I recommend you take a look at the following links, they may be helpful to you.

profile picture
专家
已回答 5 个月前
profile picture
专家
已审核 5 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则