Learn  /  What's new

DuckDB 2.0 is out: what's new, how to upgrade, and DuckDB inside dbt

The laptop database every analyst loves now has a server mode, a fast type for JSON, triggers and much quicker cloud reads, and it is supported until October 2027. What's new, what can break, and how to upgrade without trouble.

What's new9 min readUpdated 9 November 2026
DatabasesSQLWhat's new
All guides and cheat sheets

DuckDB has become the go-to tool for analysing files on a laptop: it runs SQL directly on CSV, Parquet and JSON, needs no server, and is remarkably fast. On 21 October 2026 the team released DuckDB 2.0.0, code-named "Cinnamon Teal". It is a long-term support (LTS) release, supported until at least October 2027, and the team calls it their biggest feature release so far, with close to 20,000 commits since version 1.5. Here is what is new, what can break, and how to upgrade.

2.0.0Released21 October 2026, LTS
~20,000Commitssince DuckDB 1.5
LTSLong-term supportuntil at least October 2027
59%Less output for AI agentsin the TPC-H test, with agent mode
  1. DuckDB 2.0 preview

    The team publishes the feature list; an alpha follows.

  2. DuckDB ships inside dbt v2

    No separate adapter to install.

  3. DuckDB 2.0.0 LTS releasedNow

    Python and CLI available on day one; other clients and some extensions follow within days.

Why analysts like DuckDB

SQL
-- Query a folder of Parquet files directly, no loading step
SELECT region, SUM(revenue) AS revenue
FROM 'sales/*.parquet'
GROUP BY region
ORDER BY revenue DESC;

No database to set up, no import, and results in seconds on millions of rows. That is why DuckDB now powers many data tools, notebooks and parts of cloud platforms. In August, AWS announced it would acquire DuckLabs, the company behind DuckDB, with the projects staying open source.

What's new in DuckDB 2.0

Server mode with Quack

The biggest shift: DuckDB can now run as a server, so a team can query one DuckDB database instead of passing files around. One process serves, others attach and connect:

SQL
-- On the server
CALL quack_serve(token = 'my_token');

-- On a client
ATTACH 'quack:localhost' AS qk (TOKEN 'my_token');
CONNECT qk;

By default the server only listens on the same machine. For remote access, the team recommends putting it behind a reverse proxy that handles encryption (TLS). The same CONNECT statement also works with other attached databases such as PostgreSQL and MySQL, and a new optimiser sends the query to the remote database instead of pulling whole tables over the network. DuckDB stays an embedded, in-process database at heart; server mode is an option, not a replacement.

VARIANT for JSON and semi-structured data

VARIANT is now a first-class type. DuckDB spots the common structure in your JSON and stores it in a column-like way ("shredding"), so pulling out a few fields from large documents gets much faster. It also reads and writes shredded VARIANT columns in Parquet.

SQL
CREATE TABLE events (payload VARIANT);
INSERT INTO events VALUES
    ('{"user": {"id": 42, "tags": ["a", "b"]}}'::JSON::VARIANT),
    ('{"event": "click", "x": 10, "y": 20}'::JSON::VARIANT);

SELECT variant_type(payload), variant_keys(payload) FROM events;
-- OBJECT | [user]
-- OBJECT | [event, x, y]

Triggers

For the first time, DuckDB can run SQL automatically when data changes, for example to keep an audit trail:

SQL
CREATE TRIGGER trg_audit
    AFTER UPDATE ON target
    REFERENCING
        OLD TABLE AS o
        NEW TABLE AS n
    FOR EACH STATEMENT
        INSERT INTO audit
        SELECT n.id, o.val, n.val
        FROM o JOIN n ON o.id = n.id;

Triggers can run before or after inserts, updates and deletes, per row or per statement. Two combinations are not supported yet: BEFORE ... FOR EACH ROW and UPDATE ... FOR EACH ROW.

Faster reads from cloud storage

Reading Parquet and CSV is now asynchronous: DuckDB keeps several requests in flight while it processes data, which makes queries on s3:// and other object storage much faster. In tests published by MotherDuck on the alpha, reading a 13.6 GB set of Parquet files over a home connection went from 11.8 to 3.9 seconds.

Reading Parquet over the internet: DuckDB 1.5 vs 2.0

DuckDB 1.5.5DuckDB 2.0 alpha

13.6 GB across 23 Parquet files11.8s 3.9s
2.2 GB Parquet, one column18.8s 7.7s

Seconds, lower is better. MotherDuck's tests on one laptop over a home connection, September 2026; your results will differ.

Agent mode for AI coding tools

When an AI coding agent such as Claude Code, Codex or Cursor drives the DuckDB command line, DuckDB now notices and switches to agent mode: compact Markdown tables, clear notes when results are cut, errors as JSON, early stops for runaway queries and a cost estimate before long ones. On TPC-H, the team says agents had 59% less output to read. Use -agent or -no-agent to switch it by hand.

More SQL features

Variables
$name shorthand in most places instead of getvariable('name'). In Python, $name is a query parameter, so keep using getvariable there.
Data changes inside CTEs
INSERT, UPDATE, DELETE and COPY as steps in a larger query.
NEAREST joins
Top-k similarity search, such as matching embeddings, written as a join.
Nested schemas
CREATE SCHEMA finance.reports.
JSON editing
json_set, json_insert, json_replace and json_remove.
Standard SQL
FETCH FIRST, UNNEST in GROUP BY, and clear rules for MERGE and UPDATE ... FROM when several rows match.
A new SQL parser
The new parser is now the default, with clearer error messages. It aims to stay compatible; the old one is available as an extension.
Lakehouse formats
DuckLake 1.1, more Iceberg REST catalog options, and Delta tables with partitioning and time travel.

What can break

Storage format

The main risk
  • 2.0 still reads and writes your existing files, and those stay readable by older versions
  • DuckDB versions before 2.0 cannot open database files created by 2.0

Upgrade everyone who shares .duckdb files at the same time, and keep a backup.

Lambda syntax

Old arrow switched off
Temporary escape
SET lambda_syntax = 'enable_single_arrow' (removed in 2.1)
  • Use lambda x: x + 1, e.g. list_transform([1, 2, 3], lambda x: x + 1)
  • x -> x + 1 now raises an error by default

Platforms and builds

Housekeeping
Intel Macs (osx_amd64) are being phased out; 2.1 drops them
Building from source needs C++17
Time zones and collations are now built in, replacing the ICU library, with the same behaviour

How to upgrade

Terminal
pip install --upgrade duckdb
python -c "import duckdb; print(duckdb.__version__)"   # 2.0.0

The Python package and the command-line tool are available now. Other clients, such as Go, R and Java, and some extensions may take a few days to catch up, so check the extensions you rely on before upgrading a whole team.

DuckDB inside dbt

With dbt v2, released in September 2026, DuckDB is built in: no separate dbt-duckdb package, and the driver downloads automatically on first run. A minimal profile is all you need:

YAML
my_project:
  target: dev
  outputs:
    dev:
      type: duckdb
      path: ./warehouse.duckdb

This makes dbt plus DuckDB the easiest way to learn analytics engineering on a laptop, and a fast way to test models before running them on Snowflake, BigQuery or Databricks. dbt v2 also supports DuckLake and Apache Iceberg catalogs through a catalogs.yml file, behind the use_catalogs_v2 flag. Check that your dbt version supports DuckDB 2.0 before switching a shared project's database file.

What it means for you

Analysts

Faster files
  • Keep using DuckDB for quick file analysis
  • 2.0 makes JSON and cloud files much faster

Analytics engineers

Local dbt
  • Use dbt v2 with DuckDB for local development and teaching
  • Free, and needs no warehouse account

Teams

Shared database
  • Server mode can replace "send me the Parquet file" workflows
  • Put it behind a TLS proxy and test it before relying on it

Check your understanding

1/3What does DuckDB's new Quack server mode allow?

2/3Which versions can open a database file created by DuckDB 2.0?

3/3How should you write a lambda in DuckDB 2.0?

How does DuckDB 2.0 compare with Polars and Spark? We ran the benchmarks in DuckDB vs Polars vs Spark in 2026. Want to see SQL on your own files without installing anything? SQL Studio runs queries on CSV and Excel files right in your browser. For more on choosing tools, see Choosing the right database and The data stack in 2026. Using dbt? dbt Charts now builds dashboards next to your models, and the Polars cheat sheet covers the other fast way to query files from Python. This week's other data platform news is in data platform news this week.

Sources: the DuckDB blog, "Announcing DuckDB 2.0.0 LTS Cinnamon Teal" (21 October 2026), the DuckDB release calendar and migration guide; "A Preview of DuckDB v2.0" (August 2026); "DuckDB Now Ships inside dbt v2" (September 2026); MotherDuck, "Why DuckDB 2.0 is faster"; DuckLabs, "DuckLabs to Join AWS" (26 August 2026). Code examples were tested on DuckDB 2.0.0.

Alessandro Ecclesie AgazziWritten by Alessandro Ecclesie Agazzi, analytics engineer in London. Updated 13 October 2026. About me

Found this useful?

New guides and "what's new" explainers on data and AI land here regularly. Follow along on LinkedIn, or share this one with a colleague.