SQL over sealed Parquet, where a sum that would overflow is an error.

Burrmill is the analytical engine inside Nuthatch. It answers SQL over a nest’s sealed Parquet segments plus the live tip, in DuckDB’s dialect, with exact integer arithmetic that refuses rather than wraps. It is one Rust library, MIT OR Apache-2.0, with no C++ in it. Since Nuthatch 4.1.0 it is the only engine Nuthatch has.

Try it in a tab GitHub

Figures read from the repositories on 22 November 2026. Each one links to its source.

The parts of a query engine an indexer leans on.

01 · Dialect

DuckDB’s SQL, kept as it is

Authored views are DuckDB SQL and stay that way. Integer literals are fitted as DuckDB fits them, casts round as DuckDB’s do, and identifiers resolve without case. The forms it does not admit are refused by name, with what to write instead.

docs/sql.md →

02 · Arithmetic

Sums, products and casts refuse on overflow

Every sum, product and cast in a plan is rewritten to refuse instead of wrap, through CTEs, joins and windows. Every wide column comes with _dec and _overflow beside it, and a value wider than HUGEINT can be written DECIMAL(p, s) up to 76 digits.

README, what it is →

03 · Plans

The shapes an indexer’s views are made of

A range join for x >= start AND x <= until, top-per-group, a distinct split, decorrelated subqueries, and an owned operator for the signed-union GROUP BY that balance rebuilds use. It shows in EXPLAIN.

README, the engine →

04 · Closed

SQL a host did not write can be run

A catalogue that knows the nest and nothing else: no file functions, no table factories, SELECT only. An unconfigured DataFusion session will read /etc/hosts; this one has nowhere in the grammar to ask. The threat model and the corpus of refused attempts are in the repo.

docs/sandbox.md →

05 · CLI

Strict, deterministic, receipted queries

The burrmill binary queries a directory of Parquet files with --strict decimals, --deterministic answers and a --receipt that anyone holding the same files can re-check with burrmill verify.

README, try it →

06 · Browser

The same engine in a tab

burrmill-wasm compiles the engine to wasm32. The demo page reads a CSV, JSON or Parquet file and queries it inside the tab; pressing Run here sends nothing anywhere.

burrmill-demo.vercel.app →

A wrapped sum is a wrong answer that looks right.

Token amounts are big integers and an indexer adds a great many of them. An engine that wraps on overflow does not fail; it returns a number of the right shape that is wrong. Burrmill’s promise is that integer overflow returns an error, never a wrapped number, in both of its layers.

Stock DataFusion wraps, and as of August 2026 the README says there is no core flag to stop it. DuckDB errors on HUGEINT overflow but not watertight: in its 1.5 line a SUM over two files on two threads returns the minimum i128 for a true maximum plus one (duckdb#24081, fixed on main after 1.5.5). Burrmill reproduces it with burrmill-bench duckdb-gaps.

Refusing has a price, and it is stated: a SUM over a TRY_CAST that DuckDB answers by dropping what did not fit, Burrmill refuses, by design. The README’s source for all of this is the three claims.

the README's example
-- stock DataFusion: wraps, silently
SELECT 10000000000 * 10000000000;
-- 7766279631452241920

-- burrmill: the same statement is an error, never a wrapped number

What it measured, against DuckDB.

Every figure below is from a transcript or the README in the repo, linked in its row. They are one machine, one nest and one date each, and they say so. We have measured nothing else.

Measured DuckDB Burrmill Notes and source
Authored views of the Lodestar allocations nest, byte-identical to DuckDB 22 of 22 compared 22 of 22 identical Whole output compared as a multiset of nuthatch-encoded rows before any timing. 32-core ThinkPad, 1,925 segments, 27 September 2026. source →
Time over those 22 views, warm 41,380 ms 26,194 ms (0.63x) All 22 within 1.5x of DuckDB. The worst view, lodestar_disputes at 8 rows, is 0.80x. source →
Queries per second serving 12 views, 1 client 7.2 qps 14.7 qps At 32 clients, 15.1 against 32.9 qps, with 3.9 GB of process memory against 15.4 GB. Run with ulimit -n raised, since DuckDB fails outright at the default. Not re-run over the 22. source →
Peak RSS of the balance-rebuild fold, 989,690 groups 572 to 598 MB 241 to 245 MB Against the 256 MB gate nuthatch’s swap had to meet. source →
Median of 75 allocations-dashboard statements, in process 1,616 ms 555 ms Burrmill the faster on 65 of the 75. One client, warm medians of five, 11 November 2026, box under a load average of 60 to 110. source →
Same 22 views in a browser engine, cold, from local disk 158.8 s (DuckDB-Wasm) 43.6 s (burrmill-wasm) DuckDB-Wasm is quicker on five of the small views, by 200 ms at most. lodestar_indexer_ledger ran for an hour under DuckDB-Wasm with no answer; burrmill-wasm returns its 1.7 M rows in 4.9 s. source →

Where it loses

The README says these plainly, and so does this page.

Slower per statement in production.

Through nuthatch’s /sql on the allocations nest’s real dashboard statements, about 2.5x DuckDB’s time a statement (1 October 2026). The in-process re-measure above is the newer figure, and DuckDB is no longer in nuthatch to serve beside it, so the production comparison cannot be repeated. source →

A bigger binary.

On a nuthatch-shaped consumer, the release binary is 112 MB against DuckDB’s 41. A clean test build is 84 s against 77. The footprint was accepted as the price of taking DuckDB’s C++ out of nuthatch. source →

More memory per session, and refusals at a small budget.

At the QoS nest’s own 704 MB with no spill directory, Burrmill refuses four of nine day statements that DuckDB answers. Given 2 GB it answers all nine. source →

Small queries and deep views.

An eight-row view runs eighteen DataFusion operators. A query that plans through about thirty views took 42 to 47 s to plan in a release build when the README was written. source →

HUGEINT stops at 38 digits.

DECIMAL(38,0) reaches 10^38 - 1 where DuckDB’s reaches 2^127 - 1. A value between refuses rather than answer wrongly, and no real nest has produced one. source →

It is what answers nuthatch sql.

A nest’s tables are sealed, content-addressed Parquet segments past finality, plus a hot tip. Burrmill reads the segments read-only and opens a nest through its seal manifest, so the same query sees hot and sealed rows together. The authored views in a nest’s views/*.sql, the queries that nuthatch sql and the HTTP /sql route run all go through it.

Nuthatch pins a revision of the Burrmill repository in its Cargo.toml, so a change in Burrmill reaches a nest only when that pin moves. Burrmill was checked on the real thing before the swap: every authored view of a production nest byte-identical to DuckDB, which is what the first two rows above are. The one engine post and replacing DuckDB after all tell how the swap went.

Three ways in.

Over chain data

Run a nest and ask it. Burrmill is what answers.

curl -fsSL https://nuthatch-indexer.com/install.sh | sh

install, then nuthatch sql "SELECT count(*) FROM <table>" as in the worked example.

Over Parquet files

Strict decimals, deterministic answers, and a receipt that another machine can verify.

git clone https://github.com/nuthatch-org/burrmill
cargo install --path burrmill/crates/burrmill-cli
burrmill q "SELECT who, SUM(amount) FROM trades GROUP BY who" data/ --receipt r.json
burrmill verify r.json data/

As a library

Version 0.x, so a minor bump may break the API.

cargo add burrmill --features datafusion
// Rust
let engine = burrmill::Engine::builder().parquet(Path::new("data/"), "t").open()?;
engine.set_strict_decimals(true);
let batches = engine.sql("SELECT sum(amount) FROM t")?;

Where it is going, from its own roadmap.

Burrmill’s ROADMAP says it is rewritten after every stage rather than defended. This is the same list, with what is shipped, what is open and what it has ruled out.

shipped

Replaced DuckDB inside nuthatch

Nuthatch 4.1.0 ships with Burrmill as its only engine and all six production nests ran on it by 2 October 2026. The 0.1.0 of the crate landed in nuthatch on 20 November. ROADMAP, stage 6 →

built

The engine in a browser tab

The engine, untrusted CSV ingest and the demo page are built. The reader plus engine is 7.47 MB gzipped, gated in CI at 8 MiB. ROADMAP, stage 7 →

in progress

Make the page safe to hand a stranger

The roadmap says plainly that the page is not yet safe to hand a stranger. Closing the audit’s leaks (7.4) and making the page usable (7.5) are what is open, and until then no privacy mode is a privacy claim. ROADMAP, stage 7 →

next

Where it loses: small statements and build time

The author’s stated next work is small statements and build time, the two places the README says it loses. our focus for the rest of 2026 →

draft rfc

Keep what sealed history has already answered

Today every view is a fold over all of its history, recomputed on every request. RFC-0046 proposes keeping partial state per sealed segment. It is a draft dated 16 October 2026, and nothing in it is started. RFC-0046 →

non-goal

What it will not become

A JIT, an on-disk format change and a custom Parquet decoder are non-goals in the RFC and stay non-goals. For anything that is not strict, deterministic or receipted, the README says DuckDB or datafusion-cli is the better tool. ROADMAP, not on this roadmap →