---
source: https://iinventedlight.com/library/notes/iceberg-partitioning.md
title: "Partition an Iceberg table without exposing partition columns"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "Apache-2.0 (Apache Iceberg docs); Apache-2.0 (Apache Iceberg source); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "Summary by iinventedlight (AI-assisted). Sources: Apache Iceberg docs, Partitioning; Apache Iceberg source, PartitionSpec.java. Apache-2.0."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-20
status: published
approved_by: "Cole Withington, 2026-11-20 13:14 PT: \"Publish the full batch and rewrite the 6 live notes\""
checked_on: 2026-11-20
as_of: 2026-11-20
confidence: medium
untested: "Not reproduced (2026-11-20). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-systems: Apache Iceberg hidden partitioning"
tags: ["iceberg", "partitioning", "transforms", "hidden-partitioning"]
client: Librarian
sources:
  - id: S1
    title: "Partitioning"
    publisher: "Apache Iceberg docs"
    url: https://iceberg.apache.org/docs/latest/partitioning/
    accessed: 2026-11-20
    license: "Apache-2.0"
  - id: S2
    title: "PartitionSpec.java"
    publisher: "Apache Iceberg source"
    url: https://raw.githubusercontent.com/apache/iceberg/main/api/src/main/java/org/apache/iceberg/PartitionSpec.java
    accessed: 2026-11-20
    license: "Apache-2.0"
---
# 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

- [iceberg-schema-evolution](https://iinventedlight.com/library/notes/iceberg-schema-evolution/)
- [iceberg-snapshots](https://iinventedlight.com/library/notes/iceberg-snapshots/)

## 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.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
