Iceberg hourly partitions block Glue compaction

blog.dataengineerthings.org10 min read

A data engineer investigating why a query on an Apache Iceberg telemetry table ran up to 25 times slower than Athena discovered that the table's hourly partition strategy resulted in thousands of single-file partitions that AWS Glue compaction never merged. Because compaction only rewrites files within a single partition and never merges across partitions, the fragmented file layout persisted indefinitely. Although upgrading to DuckDB 2.0 significantly reduced query latency through asynchronous I/O, the author notes that fixing the root performance issue requires moving to a coarser partition spec. Open article →