Skip to content

Athena Iceberg partitioning on nested ROW fields

0

Hi,

I have an Iceberg table created by Iceberg Kafka Connect. It is partitioned on a nested row field. When querying it gives this error:

GENERIC_INTERNAL_ERROR: Cannot invoke "io.trino.plugin.iceberg.IcebergColumnHandle.getType()" because "partitionColumn" is null

The support for partitioning on nested row fields was added in the Trino 451 release:

https://trino.io/docs/current/release/release-451.html#iceberg-connector

https://github.com/trinodb/trino/pull/15712

Will Athena query engine support this?

asked 2 years ago821 views

2 Answers
2

Currently, Amazon Athena does not support partitioning on nested fields for Iceberg tables. This is a known limitation of Athena's implementation of Iceberg support.

When working with Iceberg tables in Athena, partitioning by nested fields is explicitly not supported. If you attempt to partition by a nested field, you will receive an error message stating that partitioning by nested fields is unsupported.

While it's true that support for partitioning on nested row fields was added in Trino 451, Athena's query engine is based on an earlier version of Trino/Presto and does not yet include this feature. Athena's Iceberg implementation has its own set of supported features and limitations that may differ from the latest Trino releases.

For now, if you need to query this table in Athena, you may need to consider restructuring your data model to avoid partitioning on nested fields. Alternatively, you could explore using other services that support the latest Iceberg features, or wait for potential future updates to Athena's Iceberg support.

If this feature is critical for your use case, you might want to reach out to AWS support or provide feedback to the Athena team about your need for nested field partitioning support in Iceberg tables.
Sources
Query Apache Iceberg tables - Amazon Athena
Amazon Athena Features – Serverless Interactive Query Service – Amazon Web Services

answered 2 years ago

EXPERT

reviewed 2 years ago

0

Which Trino version is currently supported by Athena? Where do you provide feedback to the Athena team?

answered 2 years 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.