Iceberg Table Partitioning
Iceberg table partitioning uses hidden transforms to prune files automatically, evolve layouts without rewriting data, and keep physical design out of queries.
In the full article
Read the transcript
Auto-generated captions; wording may contain recognition errors.
Partitioning is the most consequential performance decision you make when creating a table on a data lake. Group data well in query engines skip [music] vast amounts of irrelevant files before reading a single bite. Group it poorly [music] and every query becomes a full scan regardless of how selective the filter [music] is. Traditional Hive style partitioning had a structural problem. Partition columns were part of the [music] table schema exposed to every query writer. If you wanted data partitioned by month, you added [music] a month column. If your query missed that explicit filter, the engine scanned everything. And if your partitioning strategy needed to change, [music] you rewrote the entire table. Apache Iceberg introduced a different model called hidden [music] partitioning. Partition transforms are defined at the metadata layer, not in the schema. A table can be partitioned by days derived from a timestamp column [music] without that derived column ever appearing in queries. The engine applies the transform and prunes files automatically. Users query logical columns and get efficient [music] partition pruning without needing to know how data is physically organized. This separation makes partition evolution practical. When query patterns shift [music] and a monthly partition strategy needs to become daily, you alter the partition spec. [music] Existing files retain their original layout. New files use the new layout. The query [music] planner understands both partition specs simultaneously and prunes correctly across both without [music] any data rewrite. Iceberg tracks partition values in metadata [music] rather than baking them into directory paths, which is what makes this possible. The physical organization of the table becomes an implementation detail the format manages on your behalf, separate [music] from the logical structure users interact with.


