DuckDB
42 posts from the Query.Farm blog tagged DuckDB.
DuckDB 2.0.1 Is Out: Upgrade Now or Wait for 2.0.2?
DuckDB 2.0.1 is out. Regressions are being fixed faster than before, but new reports still outpace fixes. Test on 2.0; keep production on 1.5 for now.
Vector tiles as DuckDB tables
vgi-mvt reads the vector tiles behind most web maps into DuckDB tables, one row per feature, and writes tilesets back with COPY. Counting places in central Florence reads 273 KB of a 4.66 GB worldwide archive.
A5 for DuckDB 2.0: new cell IDs and sets of cells
A5 1.0 changes stored cell IDs and adds compact coverings, set operations, and spatial hierarchy functions. Here is how to migrate DuckDB queries safely.
Cronjob for DuckDB 2.0: see what ran, when, and why it failed
Cronjob adds run history, typed timestamps, and per-row scheduling in DuckDB 2.0. Impossible schedules fail early, and jobs stop when their database closes.
Rhai for DuckDB 2.0: cached rules and bounded execution
DuckDB’s Rhai extension now caches compiled rules, limits their work, and removes filesystem access while keeping per-row results and errors queryable in SQL.
Fuzzycomplete for DuckDB 2.0: put the useful suggestion first
Fuzzycomplete now ranks relevant tables and columns first, handles SQL comments, and matches DuckDB 2.0 shell completion metadata without hiding tied matches.
GeoSilo for DuckDB 2.0: validate the bytes, preserve the geometry
GeoSilo adds full BLOB validation and safer decoding in DuckDB 2.0, repairs Z and M geometry round trips, and makes area, length and perimeter match Spatial.
HTTP Server for DuckDB 2.0: a server that belongs to its database
DuckDB’s HTTP Server extension now owns servers per database, requires authentication for remote access, supports TLS, and reports startup failures clearly.
Inflector for DuckDB 2.0: unique column names and per-connection acronyms
Inflector for DuckDB 2.0 isolates acronym settings by connection, resolves renamed column collisions, and adds human-readable labels, URL slugs, and class names.
JSON Schema for DuckDB 2.0: validate a column without losing the bad rows
JSON Schema for DuckDB 2.0 adds boolean validation, structured errors, and support through draft 2020-12, with explicit format checks and safer regular expressions.
JSONata for DuckDB 2.0: expressions that can be stopped
JSONata for DuckDB 2.0 adds evaluation timeouts, depth limits, syntax validation, and compiled-expression caching, with RE2 patterns and correct per-row randomness.
MiniJinja for DuckDB 2.0: a budget for rendering templates
MiniJinja’s DuckDB 2.0 branch adds per-render instruction budgets, correct undefined modes, reusable templates, and file loading through DuckDB’s access controls.
Open Prompt for DuckDB 2.0: each row gets its own request
Open Prompt now reads options per row, reports API failures as SQL errors, and uses DuckDB secrets and HTTP settings for LLM requests from SQL.
QuickJS for DuckDB 2.0: pass real values to JavaScript
QuickJS for DuckDB 2.0 passes lists, structs, dates, and large integers as native JavaScript values, with memory limits, timeouts, and fixes for crashing scripts.
Radio for DuckDB 2.0: listen again, and see what the queue lost
Radio fixes missed wakeups and repeated prepared statements, exposes dropped messages, and preserves text and binary WebSocket payloads in DuckDB.
Redis for DuckDB 2.0: typed replies, pooled connections and timeouts
Redis for DuckDB 2.0 adds lists and maps, cursor-based scans, pipelined commands, credential-scoped connection reuse, and interruptible network waits.
Shellfs for DuckDB 2.0: pipes that stop when the query stops
Shellfs now interrupts stalled pipes on POSIX, cleans up abandoned commands, respects external-access settings, and handles broken pipes without killing DuckDB.
Tera for DuckDB 2.0: template files follow the database’s rules
Tera for DuckDB 2.0 checks template file access, disables environment reads by default, catches recursive templates, and reuses parsed templates across rows.
Textplot for DuckDB 2.0: a sparkline for each group
Textplot adds tp_sparkline_agg for grouped and windowed SQL charts in DuckDB 2.0, native named options, and reliable scaling across extreme numeric ranges.
TSID for DuckDB 2.0: native UUIDs and IDs from event time
TSID adds native UUID output and timestamp inputs in DuckDB 2.0, fixes concurrent random generation, and rejects malformed IDs without crashing the process.
Webmacro for DuckDB 2.0: load one macro, in your transaction
Webmacro now validates one CREATE MACRO statement, uses verified HTTPS, limits response size, and creates macros in the caller’s DuckDB transaction.
Ask your coding agent to bring the API into DuckDB.
A coding agent can build and test a VGI worker that joins GitHub releases to local project data. APIs, data services, files, and libraries can become part of your next query.
Lindel for DuckDB 2.0: curve keys that sort like your data
Our Hilbert and Morton extension now keeps negative numbers, floats and dates in order, quantizes lat/lon onto a grid, and decomposes box queries into key ranges. Sorting 20 million points by a Hilbert key cut a Parquet box query from 200 row groups to 2. Joining on the key ranges never helped inside DuckDB.
DuckDB 1.5 and 2.0 extension availability
Comparing DuckDB 1.5.5 with 2.0.0 finds 84 extension names missing from 2.0.0 and 70.2% retention. See the full missing list and 50 names available only on 2.0.0 across the releases checked.
Improving DuckDB After 2.0 — November 5, 2026 Update
Query Farm's contributions to DuckDB from October 21 to November 5, 2026, including merged fixes, open proposals, and issue reports.
Haybarn 2.0: DuckDB 2.0 with a much faster start in the browser
Haybarn 2.0 moves our DuckDB distribution to DuckDB 2.0.0, with HTTP/2 for remote reads, a long list of fixes, and a Wasm build that starts much faster.
Why we passed on more filters for DuckDB’s bitfilters
We evaluated BuRR, Taffy, Grafite, Diva++, and partitioned Binary Fuse for DuckDB’s bitfilters extension. See the memory, speed, and correctness tradeoffs.
RapidFuzz for DuckDB 2.0: best-match extraction and Unicode-aware scores
RapidFuzz for DuckDB 2.0 picks the best match from a list in one call, scores non-ASCII text by character, adds Levenshtein and edit alignments, and runs column-against-constant comparisons two to four times faster.
DataSketches for DuckDB 2.0: sketch aggregates now stay within the memory limit and spill to disk
A grouped KLL query used 39 GB under a 1 GB memory limit. Now it uses 0.77 GB and runs 3.7× faster. Here's how we moved 15 sketch families into DuckDB's spillable memory, and the library bugs we fixed along the way.
Hashfuncs for DuckDB 2.0: row hashing, cross-system compatibility, and Iceberg buckets
Hashfuncs now hashes whole rows, matches Spark and BigQuery fingerprints, reproduces Kafka and Iceberg buckets, and adds Jump consistent hashing for growing shard counts.
Stochastic for DuckDB 2.0: fit, compare and test distributions in SQL
The Stochastic extension for DuckDB 2.0 fits 22 distributions, ranks candidate fits by AICc with dist_fits, and adds hypothesis tests and 14 new distributions, all fuzzed until every function returns an answer or a clear error. We follow a support team answering a question about repair times in SQL.
DuckDB 2.0: Upgrade Now or Wait for 2.0.1?
Updated through November 2: DuckDB 2.0 issue intake is easing while contributors remain active. We compare 46 repositories with the 1.4 and 1.5 releases.
DuckDB 2.0 and the Query Farm extension repository
Query Farm now distributes its DuckDB 2.0 extensions through its own repository. Here's how to install them and why we're changing how we deliver releases.
DuckDB-Wasm startup: from 6.8 to 2.3 seconds with Haybarn-Wasm
Haybarn-Wasm, a drop-in fork of DuckDB-Wasm, loads five extensions in 1.9 seconds, against 5.4 for upstream. Here's where the startup time went and how we cut it.
ADBC in the browser: use your existing drivers
Use native ADBC drivers from WebAssembly with Grainlift. Connect PostgreSQL to Haybarn or Cupola in the browser while keeping drivers and credentials on the server.
Your Cloudflare data, in DuckDB
Query Cloudflare's Durable Objects, D1, and Analytics Engine from your browser, the Haybarn/DuckDB command line, or Python through Grainlift and ADBC.
Bringing HTTP’s caching rules to DuckDB functions with VGI
A data service can tell DuckDB how long an answer is safe to reuse, so repeated queries can skip another API call. Our benchmarks show when that saves time—and when caching costs more than it saves.
Call an API From Every Row in DuckDB, Without the Loop
A table function turns an API call into rows in your database. A LATERAL join lets every row on the left call it — and VGI makes those calls in batches.
A SQL WHERE Clause for Taste
I pointed DuckDB at Hacker News and at Jev, TypeSafe's decision model, and asked it to score 500 stories against one sentence about what I like. It took 17 seconds and cost less than a penny.
DuckDB VARIANT and Arrow: What Works Today
Direct VARIANT interchange with Arrow is merged into DuckDB's 2.0 development branch. See what works, what still needs a release, and the remaining limits across C++, Python, Go, Rust, and Java.
DuckDB 2.0 Pushes Whole Queries Through ADBC—10–11× Faster on PostgreSQL
Query Farm's adbc_scanner uses DuckDB 2.0 whole-query pushdown to run supported queries entirely in PostgreSQL. In our benchmark, it was 10–11× faster.
The Foundation owns the IP. DuckLabs ships the release.
The IP is safe under the DuckDB Foundation, but the Foundation doesn't cut releases — DuckLabs does. What the AWS acquisition changes for people who build on DuckDB, and what Query Farm is doing about it.