DuckDB Scales Turns the Cluster Into a Fallback
One query, two plans, and the end of the single-machine-versus-cluster decision
DuckLabs shipped a distributed DuckDB that races a single-node plan against a cluster and lets the faster one win. The benchmark is real, the cost figure is missing, and the architecture decision has moved into the query planner.
Published Dec 5, 2026 • 9 minutes read
The cluster stopped being an architecture
On December 1 at re:Invent, DuckLabs announced two things that are easy to read as one. DuckDB Scales is a new extension that splits a single analytical query across many machines. Amazon Athena, powered by DuckDB is a managed service, in public preview now, that runs it. The headline number is real: on TPC-H at scale factor 100,000 — about 100 TB of CSV, roughly 866 billion rows — DuckDB Scales ran all 22 queries on 256 workers with a median runtime of 57.1 seconds. A year ago the same workload on one 192-vCPU machine with 1.5 TB of RAM took a median of 1.19 hours.
That is a 75× improvement in latency for roughly 43× the cores. It is also not the interesting part.
The interesting part is that the decision “single machine or cluster” has moved out of your architecture diagram and into the query planner. Athena does not ask you to pick an execution mode. DuckDB Scales does not ask either: it starts the whole query on one process next to the coordinator, spins up the distributed plan a few seconds later, and lets whichever finishes first win.
For ten years the rule was: keep small work on one box, move big work to a cluster, and accept that you now operate two systems. That rule is being replaced by a per-query decision made by software you do not control.
Two numbers that do not answer the same question
The launch material makes two performance claims, five orders of magnitude apart.
- The press release says the DuckDB-powered Athena engine is 2× faster on a 1 GB TPC-DS benchmark than Athena engine v3, at 50% lower cost per query.
- The technical blog says the distributed engine ran 100 TB of TPC-H with a 57.1-second median across 256 workers.
Those are different tests. At 1 GB, nothing is distributed. Every query fits inside one worker, and what you measure is startup, plan compilation, and vectorized execution on data that never leaves memory. The win is real, but it is an overhead win.
At 100 TB you measure the opposite thing — how well the work divides, how much time the exchange costs, and whether the fleet stays useful as it grows. The 1 GB result tells you nothing about that. The 100 TB result tells you nothing about your bill.
Which is the gap worth naming: neither document publishes a cost figure for the 100 TB run. The press release prices the small benchmark; the technical blog measures the large one.
How it works, and why the design is the argument
DuckDB Scales is not a rewrite of DuckDB into a distributed system. It is a coordinator that decomposes an optimized logical plan into stages, plus workers that each receive one self-contained SQL statement over a specific set of input files. A worker plans that statement locally, with its own threads, and writes its output back to shared object storage. Every design consequence follows from that choice.
- No shuffle service. No dedicated process moves rows between workers. Intermediate results are files in S3, DuckLake, or Iceberg. That removes a whole category of operational failure — the shuffle that fills a disk, the broker that dies under backpressure — at the cost of writing and re-reading at every stage boundary.
- Fault tolerance becomes retry. Because a task is just a SQL statement that reads files and writes files, it is idempotent, and the system runs it with at-least-once semantics. Whichever attempt commits first wins and the others are discarded. No consensus protocol, no lineage tracking, no checkpoint barrier. A failed task is simply re-run.
- Aggregation is bucketed through storage. Each worker pre-aggregates its share, hashes the grouping key, and writes partial results into buckets. The next stage assigns one bucket per worker, finalizes it, and the coordinator collects the result. All the parallelism lives in the file layout.
Then comes the trick that makes the whole thing defensible: speculative execution. When a query arrives, the coordinator also runs the entire query on a single DuckDB process next to itself. A few seconds later, the distributed plan starts. First to finish wins, the other is cancelled. For a small query the distributed plan often never begins at all.
DuckLabs is explicit that the fixed cost per Scales query is a few hundred milliseconds and that “plain DuckDB is faster” for small ones.
What the benchmark does not show
The scaling curve on Q1 is genuinely good: 64 workers at 37.5 seconds, 128 at 21.1 seconds (1.78×), 256 at 11.1 seconds (3.38×, or 84% parallel efficiency). End to end, the scan moved about 54 billion rows per second across the fleet. Those are strong numbers for an exchange-through-object-storage design, where you would expect the stage boundaries to hurt more.
Now the limits. It is one query on one synthetic dataset, warm, with no concurrent users, no injected failures, and no cost column. The storage is S3 Express One Zone — a single-AZ, high-throughput class — so the exchange costs here are better than a general-purpose S3 bucket would give you. TPC-H is 22 fixed queries, which is a benchmark, not a distribution — and the entire pitch here is the long tail of a distribution, which a fixed benchmark cannot measure by construction. The comparison to last year also swaps hardware classes: 192 vCPUs of i8g against 8,192 of r8g, so 75× is a system-level result, not an efficiency result.
None of that makes the numbers wrong. It makes them narrower than the announcement implies.
The competitive fact nobody led with
Athena already had two execution engines: a Trino-based SQL engine and a separate Apache Spark environment. DuckDB is now a third. So the most consequential competitive fact here is internal to AWS: the new engine’s distributed mode targets exactly the workloads Athena’s own Trino engine handles, and the published comparison is against Athena v3, not against Trino on the same 100 TB. The public evidence therefore does not answer the question an Athena customer actually has, which is which of the three paths to use for a given query.
Worth stating plainly, because it reframes the neutrality of the whole announcement: DuckLabs has been an AWS subsidiary since September 2026, and began building Scales before that acquisition closed. The DuckDB project is still MIT-licensed with its intellectual property held by the DuckDB Foundation, and that independence is real. But the company shipping this feature is now the company that also sells the service it competes with, which is a different arrangement from a neutral vendor publishing a benchmark against a customer’s incumbent.
The honest counter-case
The strongest objection is not that DuckDB Scales is slow. It is that per-query routing moves complexity from your architecture into your observability — and most teams are worse at the second one.
If the engine picks the path, you need to know which path your query took, because the cost model, latency profile, and failure modes all differ — per query, not per month. A system that is 2× faster on average but unpredictable on the queries you care about is harder to operate than one that is uniformly mediocre.
Two more deserve to stand.
First, dialect portability has been promised repeatedly and usually dies somewhere other than the SELECT statement: catalog semantics, permissions, user-defined functions, isolation, and how NULLs sort. Running the same SQL text on a laptop and on 256 nodes is a good property. It is not the same as getting the same answer.
Second: the single-node simplicity was the product. A distributed mode with a few hundred milliseconds of fixed cost and an object-storage round trip at every stage boundary can make the middle of your query distribution worse. Speculative execution mitigates that by running both plans — which means you pay for the single-node attempt even when the cluster wins. Defensible trade, but not a free one.
What I would not concede is that this is only a scale story. The mechanism — same SQL, same file formats, routing decided per query — moves the boundary between “small data” and “big data” tooling inside the engine, not into your team’s conventions.
Four things to check before you care
- Measure the shape of your query distribution. Bucket last quarter’s queries by bytes scanned and find the fraction that exceed one machine. If it is under a percent, a cluster is a tax you pay for a rounding error — and the 1 GB number is the one that applies to you.
- Prototype with the extension, not the service. The Athena extension for DuckDB lets a local DuckDB session query Athena directly. That is a cheap way to learn whether your SQL survives the move before you migrate a pipeline onto it.
- Write down the exit condition first. Right now Scales runs only inside Athena’s preview. Open source is a plan, timed to the engine’s general availability, targeted for H1 2027 — not a date you can put in a migration plan. The core database is MIT-licensed, with its intellectual property held by the DuckDB Foundation; neither document states what license the Scales extension will carry. Ask before it becomes a dependency.
- Test your three worst queries, not the vendor’s. Run them at real volume and compare wall-clock and bytes scanned against whatever you run today. A benchmark you cannot reproduce on your own data is a press release.
DuckDB spent years arguing that most analytical work does not need a cluster, and it was right about most analytical work. This week it conceded the rest — not by abandoning the single machine, but by making the cluster something the engine reaches for when one query needs it. The ceiling moved. The invoice did not get smaller; it got more granular.