Query Iceberg Tables already present in Glue

0

I have Iceberg tables that were created in Glue with Parquet files, but I am unable to query these tables from Athena. I had a similar situation with Delta Lake tables which was resolved by using the Glue Delta Crawler. Is there an extra step required in order to view and query Iceberg tables from Athena?

cano_
已提問 1 年前檢視次數 635 次
1 個回答
1

First off, I'd like to let you know that Athena only supports Iceberg tables built against the AWS Glue catalogue using the specifications established by the open source glue catalogue implementation. Additionally, in the TBL PROPERTIES clause, you must specify the 'table type' table property to 'ICEBERG' in order to construct an Iceberg table from Athena [1] : -

" CREATE TABLE [db_name.]table_name (col_name data_type [COMMENT col_comment] [, ...] ) [PARTITIONED BY (col_name | transform, ... )] LOCATION 's3://DOC-EXAMPLE-BUCKET/your-folder/' TBLPROPERTIES ( 'table_type' ='ICEBERG' [, property_name=property_value] ) "

In relation to using Apache Iceberg with Athena, I would also advise you to read over the many considerations and restrictions listed in the document found here [2].

Incase if you still face the issue , there can other backend issue which can only be seen through backend tool. So, I would request you to raise a case to Premium support regarding the same from the concerned account.

References :-

[1]: Creating Iceberg tables - https://docs.aws.amazon.com/athena/latest/ug/querying-iceberg-creating-tables.html

[2]: Considerations and limitations with using Iceberg tables with Athena - https://docs.aws.amazon.com/athena/latest/ug/querying-iceberg.html#querying-iceberg-considerations-and-limitations

AWS
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南