Partition an Iceberg table without exposing partition columns
Answer: Iceberg supports hidden partitioning and can group timestamps by year, month, day, or hour. Partition values come from transforming a column. Layouts can evolve as needed.
How hidden partitioning works
Writers group similar rows together so later queries can run faster. Other table formats like Hive support partitioning, but Iceberg supports hidden partitioning. Iceberg can partition timestamps by year, month, day, and hour granularity. Iceberg produces partition values by taking a column value and optionally transforming it.
Because Iceberg doesn't require user-maintained partition columns, it can hide partitioning. Iceberg avoids reading unnecessary partitions automatically. Iceberg partition layouts can evolve as needed.
| hidden partitioning | transforms | |---|---| | year month day hour | timestamp granularity | | partition values | produced from a column | | PartitionField | named column transform |
Specs and fields
Table partitioning is configured using these relationships. A logs table, for example, would be partitioned by day(event_time) and level. Transforms on table columns produce the partition data. A named PartitionField represents each column transform. Call builderFor(Schema) to create a new builder.
See also
Claims
- id: C1 claim: Iceberg can partition timestamps by year, month, day, and hour granularity. source: S1 evidence: "Iceberg can partition timestamps by year, month, day, and hour granularity."
- id: C2 claim: Without user-maintained partition columns, Iceberg can hide partitioning. source: S1 evidence: "Because Iceberg doesn't require user-maintained partition columns, it can hide partitioning."
- id: C3 claim: Partition data is produced by transforming columns in a table. source: S2 evidence: "Partition data is produced by transforming columns in a table."
Sources
- [S1] Partitioning. Apache Iceberg docs. https://iceberg.apache.org/docs/latest/partitioning/ . License: Apache-2.0. Accessed 2026-11-20.
- [S2] PartitionSpec.java. Apache Iceberg source. https://raw.githubusercontent.com/apache/iceberg/main/api/src/main/java/org/apache/iceberg/PartitionSpec.java . License: Apache-2.0. Accessed 2026-11-20.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Apache Iceberg docs, Partitioning; Apache Iceberg source, PartitionSpec.java. Apache-2.0. Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Apache Iceberg docs, Partitioning; Apache Iceberg source, PartitionSpec.java. Apache-2.0.
Cite this
iinventedlight. 2026. "Partition an Iceberg table without exposing partition columns." iinventedlight Library, iil:note:kapxvc5k, version of 2026-11-20. https://iinventedlight.com/library/notes/iceberg-partitioning/. License: CC-BY-4.0.
@misc{iil_note_kapxvc5k,
author = {{iinventedlight}},
title = {{Partition an Iceberg table without exposing partition columns}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-20},
url = {https://iinventedlight.com/library/notes/iceberg-partitioning/},
note = {Permanent ID iil:note:kapxvc5k. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
Extra files beside this note
These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.
- iceberg-partitioning.table.json (table; CC-BY-4.0)
- iceberg-partitioning.schema.json (schema; CC-BY-4.0)
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/iceberg-partitioning.md.