A terminal app for Apache Iceberg tables

See the rest of the iceberg.

icelens shows what an Iceberg table is made of: its commits, the manifests and files each one points at, and the rows, as of any commit you pick.

icelens --demo
  1. The catalog: namespaces and their tables. / filters them, ctrl+p finds any table.
  2. Ten panes, one key each: 1–9 and 0.
  3. Where these numbers came from: which engine read them.
  4. The pane. Arrow keys move the cursor; x exports it to CSV, c copies a cell.
  5. The guide: what the cell under the cursor is in Iceberg. It changes as the cursor moves.
  6. The status bar: which catalog this is, and how it is read. Under it, the keys that work here.
What icelens shows

A query sees the tip. icelens shows the rest.

SELECT * FROM demo.orders183 rows. That is all a query says.
what icelens shows
  1. metadata.jsonthe table at one moment: schemas, specs, refs1
  2. snapshotsevery commit, and the one you are viewing4
  3. manifest list → manifestswhat that snapshot points at6
  4. data & delete fileswhat was live, then7
  5. rowsread as of the snapshot you pinned3
Why

What a query does not tell you.

Why the last write made three snapshots, which files a commit retired, what the schema was six versions ago. icelens shows each of these in a pane.

Pin a snapshot

Press Enter on a snapshot and every pane re-reads as of it: the schema it was written with, the files that existed then, the rows as of then.

u returns to the current snapshot.

4 Snapshots · demo.orders
1 │ append       +120 rows
2 │ append        +30 rows
3 │ overwrite    −12 test rows  ◀ Enter
4 │ append        +20 rows
5 ◆ append        +25 rows  current
every pane now answers as of 3

Ten panes, ten keys

Overview, Schema, Data, Snapshots, Commit, Manifests, Files, Partitions, Layout and SQL, on 1–9 and 0.

A guide rail

A rail under every pane explains whatever the cursor is on: the pane, the column, the value. g cycles it; --explain prints the same terms.

A sandbox to write in

The one place icelens writes. CREATE, INSERT, DELETE, and a ledger of what each commit did; --v3 adds deletion vectors, row lineage and MERGE.

Every pane, headless

--pane, --sql and --json print what a pane would show, for scripts and for CI. The JSON is a tested contract.

Snapshots

Every commit, and what it did.

--demo writes one table, demo.orders, with five commits. Commit 3 is the DELETE of twelve test rows: an overwrite, +108 / −120.

Real output from a fresh demo, with some columns left out to fit.

icelens --demo --pane snapshots demo.orders
5 snapshots - ◆ current, │ ancestor, ~ off the current chain (0)
#     committed at         operation  snapshot id          seq  +rows  -rows  total rows  schema  refs
1  │  2026-11-12 21:20:09  append     1489488501112396355  1    120    0      120         0       first-load
2  │  2026-11-12 21:20:09  append     3709505998256409031  2    30     0      150         0
3  │  2026-11-12 21:20:09  overwrite  2181464243807922963  3    108    120    138         0
4  │  2026-11-12 21:20:09  append     5426099955044402436  4    20     0      158         1
5  ◆  2026-11-12 21:20:09  append     7886370966830839580  5    25     0      183         1       main
Manifests

What one snapshot points at.

The manifest list behind the current snapshot, one row per manifest: who added it, its rows, its sequence number and its partition spec. Two specs side by side here, because the last commit was written after partitioning by region.

Real output; columns left out and file names shortened to fit.

icelens --demo --pane manifests demo.orders
snapshot 7886370966830839580 lists 4 manifests
content  added by             own  added  +rows  seq  spec  size    manifest
data     7886370966830839580  yes  4      25     5    1     5.9 KB  b64e499c-…-m0.avro
data     5426099955044402436       1      20     4    0     4.6 KB  be38fa92-…-m0.avro
data     2181464243807922963       1      108    3    0     4.5 KB  012fd2ee-…-m0.avro
data     3709505998256409031       1      30     2    0     4.5 KB  16b26532-…-m0.avro
The panes

One key each. All of them follow the pinned snapshot.

  • 1OverviewWhat metadata.json says: version, uuid, location, refs, properties, the metadata log.
  • 2SchemaThe viewed snapshot's schema, nested fields and field ids, identifier fields and partition transforms.
  • 3DataRows through DuckDB when it can attach, PyIceberg otherwise; a limit, a WHERE, row lineage on v3.
  • 4SnapshotsEvery commit, oldest first: the current one, its ancestors, anything off the chain.
  • 5CommitWhat one snapshot changed: the files it added and the files it retired.
  • 6ManifestsThe manifest list, one row per manifest, with partition ranges.
  • 7FilesEvery live file at that snapshot: data, position deletes, equality deletes.
  • 8PartitionsPartitions with their file and row counts.
  • 9LayoutThe pointer chain, indented: metadata → snapshot → manifest list → manifests → files.
  • 0SQLAny DuckDB SQL over the attached catalog, time travel included.
Install

One command.

It reads any Iceberg catalog PyIceberg can reach. Tested with Iceberg REST (Lakekeeper, Apache Polaris), Google BigLake and local SQL catalogs; see Platforms for the rest.

Install

With uv, or pipx.

uv tool install icelens
pipx install icelens
icelens --version

Open a catalog, or start with none

It finds the catalog this directory is configured for.

icelens                      # this directory's catalog
icelens demo.orders          # straight onto a table
icelens --uri http://localhost:8181/catalog --warehouse demo
icelens --demo               # a local catalog worth opening

Try it on the demo table.

One command, nothing to configure: a local catalog with one table and five commits.

uvx icelens --demo