← All notes

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

Sources

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

Permanent ID: iil:note:kapxvc5k

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.},
}

Markdown

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.

All artifact files (JSON index)

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.