r/DuckDB • • 2h ago

Have you migrated to DuckDB 2.x yet?

2 Upvotes

Now that DuckDB 2.x has been released, I’m curious to know whether you’ve already migrated or are taking a wait-and-see approach.

I’m currently developing a statistical extension for DuckDB called DuckDB-stats.
https://github.com/mitsuruk/DuckDB-stats

It’s a personal side project that I work on mainly on weekends, so the time I can dedicate to development and maintenance is limited.

I’m currently trying to decide whether to continue supporting both DuckDB 1.x and 2.x or focus exclusively on 2.x.

Supporting both versions requires a significant amount of additional development, testing, and maintenance effort. Given that the current 1.x release is scheduled to reach EOL next spring, I’m considering focusing my limited development resources on 2.x.

I’d be interested to hear about your experience and plans:

- Have you already migrated to DuckDB 2.x?
- If you’re still using 1.x, when are you planning to migrate?
- Are there any technical reasons or concerns holding you back from upgrading?
- How important is continued support for older DuckDB versions in third-party extensions?

Your feedback would be very helpful in deciding the future development direction of my extension.

Thanks in advance!


r/DuckDB • • 2h ago

AWS Scale and Multi Server execution with Duckle

4 Upvotes

Duckle 0.9.2: Multi-server execution is here.
One switch lets Duckle distribute workloads across multiple DuckDB servers.

Files are split by file, while database tables are split by key range. Each server processes its share, and results are combined automatically.
A few things worth mentioning:

Credentials stay on their respective machines.
Failed servers can have their work reassigned.
Unsupported sources fall back to your local machine.

Joins, sorts and API connectors remain local.
Also added DuckDB Scales support through Amazon Athena, allowing queries to run across multiple machines within AWS.

The video shows a real run with three local DuckDB servers processing 12 Parquet files. Results matched the single-server execution row for row.

There’s a small overhead, so single-server remains the default for smaller pipelines.
Free and open source. Build locally, deploy on your own servers or cloud.

Link - https://github.com/slothflowlabs/duckle


r/DuckDB • • 5h ago

DataRanger: tests a data fix against the source's totals before applying it

Thumbnail
github.com
2 Upvotes

What My Project Does

DataRanger checks tables for data-quality problems (duplicates, nulls, unit errors, late partitions, broken references). For each problem it tries candidate fixes on a copy, compares the result with the source system's control totals, and applies only a fix that matches. Anything it can't prove goes to a person with the evidence. It never modifies your input tables.

pip install dataranger
dataranger demo

The demo runs locally in a few seconds on a sample table and writes an HTML report. No account or API key. It works with DuckDB, CSV and Parquet files, Snowflake and dbt, and runs as a GitHub Action or an MCP server.

Target Audience

Data engineers who own pipelines where a wrong number costs something. It's usable today but young (version 0.9), so I'd call it ready for trying on real tables, not yet for running unattended in production.

Comparison

Great Expectations, Soda and dbt tests tell you something is wrong. DataRanger starts there and goes one step further: it proposes a fix and checks that fix against the source before applying it. The limit is that it needs control totals from the source system, or a raw table to build them from.

I'm the author. Benchmark numbers in the README are on synthetic data. I'd value criticism, especially of the verification step.

https://github.com/akshaysharma1088/dataranger


r/DuckDB • • 9h ago

Replaced Postgres with daily Parquet on Cloudflare R2 + read-only DuckDB for a public transit reliability dashboard (~US$10/mo)

Thumbnail
gallery
39 Upvotes

I run a free public transit dashboard (transit.yesid.dev) tracking live buses and historical schedule reliability across Montréal (STM), Ottawa (OC Transpo), and Gatineau (STO) (over 1,700 live vehicles on a busy evening, ~2.6M stop arrivals/week on STM alone).

Originally I backed the historical queries with Postgres, and as the GTFS-RT archive grew, storage and hosting costs kept climbing for a mostly append-only, read-heavy analytical workload. I recently rebuilt the entire engine around daily clean Parquet files on Cloudflare R2 queried by a read-only DuckDB service (apps/engine).

How the pipeline works (~US$10/month total):

  • Ingestion (Python): Polls each agency's GTFS-RT vehicle positions & trip updates, matches readings against scheduled trips, and writes clean daily star-schema Parquet files (bronze -> silver -> gold) to Cloudflare R2.
  • Analytical engine (DuckDB): A thin read-only DuckDB query engine reads the daily Parquet partitions directly for arbitrary date ranges, day-of-week / time-of-day slices, line/stop rankings, and 3D corridor delay rollups.
  • Edge + Frontend: A Cloudflare Worker data proxy caches hot queries in front of a SvelteKit (Svelte 5) + MapLibre + self-hosted PMTiles frontend. Users can also download the underlying daily Parquet or CSV files straight from the app.

A few analytical guardrails built into the SQL:

  • Never average averages: Every multi-day rollup re-aggregates raw numerators and denominators across daily partitions rather than averaging daily percentages.
  • Missing != zero (and != on-time): Roughly 35% of scheduled stop arrivals have no live GPS/prediction reading. They are explicitly left out and reported as observed coverage instead of silently treated as on-time.
  • 30-observation floor: Lines and corridors require at least 30 recorded observations before entering rankings so noisy 2-trip outliers don't dominate the leaderboard.
  • Live app: https://transit.yesid.dev/?ref=r_duckdb
  • Architecture & data pipeline write-up: https://yesid.dev/projects/transit-data-pipeline?ref=r_duckdb
  • MIT open-source repo (apps/engine + ingestion): https://github.com/yesid-dev/transit

Happy to answer questions on the DuckDB / R2 Parquet layout, partition sizing, or query caching trade-offs.