DELETE FROM does not work on AWS Data Catalog table

0

Hello,

While trying to run this command DELETE FROM "datasets"."us_spending" in Athena, on a table from AWS Data Catalog, I had this error:

NOT_SUPPORTED: Cannot delete from non-managed Hive table
This query ran against the ‘datasets’ database, unless qualified by the query. Please post the error message on our forum  or contact customer support  with Query ID: 5c140e60-7534-44b5-a693-85ec1d645d4b

Does this means that I can't delete from the AWS Data Catalog tables, and only delete the entire table, and then recreate it ? Is there any method to delete rows based on where condition ?

Thank you,
Mihai

질문됨 3달 전672회 조회
1개 답변
0
수락된 답변

Hi,

as described in the Athena Documentation Delete works only with Iceberg tables.

Tables catalogued in the AWS Glue Catalog from file formats as csv, parquet, orc, json, etc. are append only; a data lake it is not transactional unless you start using an open table format as Iceberg, Hudi or Delta. Currently Athena supports only Iceberg for deletes.

To learn more on how to create and work with a Iceberg table in the AWS Glue Catalog refer to this documentation page from LakeFormation and the following blog posts: Introducing AWS Glue crawler and create table support for Apache Iceberg format , AWS Glue Data Catalog now supports automatic compaction of Apache Iceberg tables, Perform upserts in a data lake using Amazon Athena and Apache Iceberg

hope this helps

AWS
전문가
답변함 3달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠