Iceberg-style table format: immutable Parquet, manifests, snapshots, time travel, compare-and-swap commits.
File-based tables need atomic visibility across many immutable files, time travel, and safe concurrent writers. This is a small Iceberg-inspired format: Parquet data files, JSON manifests with column stats, immutable snapshot metadata, and a SQLite catalog that publishes each version with compare-and-swap.
Highlights
- Two processes committing from the same base version: exactly one CAS wins; with rebase enabled the loser re-publishes its already-written files and no rows are lost.
- A writer killed after writing data but before the CAS leaves only unreachable orphans - readers never see partial commits.
- Partition + min/max pruning opened 95% fewer files on selective scans, and randomized tests prove pruning never drops a matching row.
Project page: https://ravirs.github.io/floe/ · by Ravindra Sawant · all my work
An Iceberg-inspired table format: immutable Parquet data files, immutable JSON manifests with column stats, immutable snapshot metadata and a SQLite catalog that publishes new versions by compare-and-swap. Supports time travel, partition + min/max pruning, optimistic concurrency with rebase, field-ID schema evolution and conditional compaction. Built to a four-page product spec (requirements below). Not Iceberg-compatible metadata.
pip install -r requirements.txt
PYTHONPATH=src python -m minice demo
PYTHONPATH=src python -m minice --warehouse /tmp/wh create --name sales --schema examples/schema.json --partition region
PYTHONPATH=src python -m minice --warehouse /tmp/wh append --name sales --file examples/rows.jsonl
PYTHONPATH=src python -m minice --warehouse /tmp/wh scan --name sales --where "region = 'eu' AND amount >= 20"
PYTHONPATH=src python -m minice --warehouse /tmp/wh history --name sales
python -m pytest -q && python benchmarks/bench.py --quick| Req | Pri | Status | Evidence |
|---|---|---|---|
| FR-01 schema with field IDs, row validation | P0 | ✅ pass | T01, T04, validation |
| FR-02 immutable Parquet + manifests + metadata | P0 | ✅ pass | T01, T03 |
| FR-03 SQLite CAS, stale commits refused | P0 | ✅ pass | T02 (two processes), T03 |
| FR-04 pruned snapshot scans with counts | P0 | ✅ pass | T01, randomized pruning test |
| FR-05 rebase, add/rename by ID, compaction | P1 | ✅ pass | T02, T04, T05 |
benchmarks/bench.py builds 200 small files over 20 partitions and reports file opens / bytes / time for full vs
selective scans plus one-partition compaction (≥4× fewer files target). See benchmarks/results/latest.json.
No Avro manifests, REST catalog, row-level deletes, hidden partition transforms or multi-table transactions; no automatic deletion of orphans or expired snapshots. See docs/architecture.md.
| Area | Projects |
|---|---|
| Storage & data systems | Strata · Tidelog · Flint · Watermark · Warden · SnapshotDB |
| AI infrastructure | Nearline · KVPager · Batchwise · Steadyhand · Toolgate |
| Distributed systems | Quorum · Tandem · Burrow |
Everything else I build (iOS apps, ML/AI tools): https://ravirs.github.io/
Built with Claude Code as an AI pair programmer from a written spec, then reviewed and verified with the acceptance tests and benchmarks above.