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?

asked 4 months ago512 views
1 Answer
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
EXPERT
answered 4 months ago
profile picture
EXPERT
reviewed 4 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions