Repository navigation
Multi-server mode: one switch splits what DuckDB servers can run of a
pipeline across Quack servers. And DuckDB Scales through Amazon Athena. Read
Before you upgrade first.
14 commits since v0.9.1.
Before you upgrade
- A NULL in an upsert key now matches the same NULL (#414). An upsert into
SQL Server, Oracle, Snowflake or Databricks, and the merge mode of the
DuckDB, SQLite, MotherDuck and DuckLake sinks, inserted a row whose key held
a NULL again on every run. Rows that earlier runs inserted twice stay in the
table and the next run updates every copy, so delete the extras once by
hand. - The merge mode refuses two input rows with one NULL key, like any other
pair, and the error names the key (id=NULL). Both used to be inserted.
Deduplicate before the sink. - The Python Expression node computes
int()and%the way Python does
(#411).int(3.7)is 3, not 4, and-7 % 3is 2, not -1, so a pipeline
that relied on the old numbers writes different ones. Thanks to
@jayhemnani9910.
Multi-server mode
- A switch for the run: Single server (optimised), the default, or
Multi-server, in Settings,duckle-runner --execution multi --quack-servers w1:9494,w2:9494, MCPrun_pipeline(execution,
quackServers) orDUCKLE_EXECUTION. The token comes from
DUCKLE_QUACK_TOKEN, and Settings keeps it encrypted. - In Multi-server, every source DuckDB servers can read is split across them:
Parquet, CSV and JSON files on disk or in S3, GCS, Azure, MinIO, R2 or B2 by
file, and Postgres, CockroachDB, MySQL, MariaDB and SQLite tables by ranges
of a new Split column field. The row-by-row steps after the source run there
too, then an aggregate that combines from partials (count, sum, min, max,
avg) or a Parquet, CSV or JSON sink each server writes its own part of. - Joins, sorts, windows, distinct and limits, and the API, streaming, SaaS and
warehouse connectors, run here. The run's log says which is which, and a
source the servers cannot read (they do not see this machine's files, or
cannot open the database) is read here instead. - No credential is sent: Quack keeps what a client sets for every later
client, so each server uses its own (an S3 secret in its--init,
PGPASSWORD,MYSQL_PWD,~/.pgpass). - A server-written sink's path becomes a folder of
part-0,part-1and so
on, one per server. Overwrite replaces them by name, and a run that would
leave older parts behind fails and names them, since Duckle cannot delete in
object storage. Append adds parts named by the run. - Each run pays about half a second for checking the servers and listing the
files, so a pipeline one machine finishes in a second or two is faster on
Single server. Delta, Iceberg and DuckLake tables are not split yet.
One scan over many machines
- A new source, Scale-out Scan (
src.scaleout), splits a scan of Parquet,
CSV or JSON files across several DuckDB servers over the Quack protocol.
Each server filters its share and pre-aggregates it (sum, count, min, max,
avg), the run combines the shares, and a share whose server fails moves to
the next server. An aggregate that does not combine from partial results is
refused when the pipeline compiles. - Measured on one 20-core machine with three local servers of 4 threads each:
120M rows of Parquet aggregated in 0.63 s against 0.88 s on one 4-thread
DuckDB, and 60M rows of CSV in 1.34 s against 2.18 s. It pays when the
servers shrink the data. A run costs about half a second more, so a scan
one machine finishes in a second or two stays faster there. duckle-runner quack-servestarts a server on this Duckle's own DuckDB,
so the release lines match, and stops with the runner. It takes its token
fromDUCKLE_QUACK_TOKEN, runs--initSQL first (aCREATE SECRETfor the
bucket, say) and stops if that fails, and serves other machines only once
you choose--no-tlsor--tls-cert/--tls-key. On Linux with an NVIDIA
GPU it loads Sirius the way a run does.
DuckDB Scales, through Amazon Athena
- DuckDB Scales runs one DuckDB query over many machines. Today it runs inside
Amazon Athena's DuckDB engine, an AWS preview. - The Amazon Athena (DuckDB) source (
src.athena) sends a query in
DuckDB's SQL there and reads the result once per run, as Athena bills each
query. Run in Athena (snk.athena.execute) runs one statement there, an
INSERTorCREATE TABLE ASbetween Iceberg tables, say, so the data stays
in AWS. - Both use AWS's
athenaDuckDB extension, which Duckle installs from AWS's
extension repository on first use, and sign in with access keys or the
run's AWS identity. A workspace's allowed domains hold them to
athena.<region>.amazonaws.com. The AWS account has to be enabled for
Athena's DuckDB engine, and the workgroup has to keep query results. - Checked as far as an account allows: the extension loads and the request
reaches Athena, which refused the test keys.
Fixes
- REST page-number paging stops on the last page when a Total-pages JSON
pointer gives the count, where it asked for one page past it (#412). With
nothing else to stop on, a page that comes back the same as the one before
fails there, naming the page parameter. Read only the first N pages
keeps the first pages on purpose, on any paging style. curve25519-dalek5.1.0 (RUSTSEC-2026-0620).