DuckDB 2.0.0 LTS "Cinnamon Teal"
Recorded: Oct. 21, 2026, 3:11 p.m.
| Original | Summarized |
Announcing DuckDB 2.0.0 LTS “Cinnamon Teal” – DuckDB Documentation Getting Started Installation Quack Remote Protocol Guides Data Import Client APIs SQL Introduction Why DuckDB Resources Blog Library Events Webshop Design History FAQ GitHub 42.3k Support Search Shortcut cmd + k | ctrl + k Blog Announcing DuckDB 2.0.0 LTS “Cinnamon Teal” 2026-10-21 The DuckDB team TL;DR: The DuckDB team is happy to announce that today we're releasing DuckDB version 2.0.0 LTS, codenamed “Cinnamon Teal” (Spatula cyanoptera). This is our biggest feature release so far, and it ships a polished version of the Quack protocol, asynchronous I/O, a first-class VARIANT type, agent mode, triggers, an extensible SQL parser and much more, built from close to 20,000 commits since DuckDB 1.5. We are proud to release DuckDB 2.0.0, codenamed “Cinnamon Teal” after the Spatula cyanoptera, a strikingly reddish-brown duck found in the western Americas. Tip To install the new version, please visit the installation page. With this release, there are currently three DuckDB lines available. DuckDB as a Server DuckDB has been an in-process database since day one. Quack and CONNECT DuckDB 2.0.0 ships a polished version of the Quack protocol with substantial performance and stability improvements. It also introduces the new CONNECT statement that allows attaching and switching to a remote database in a single command for better ergonomics: DuckDB server CALL quack_serve( CREATE TABLE events INSERT INTO events VALUES quack: DuckDB client ATTACH 'quack:localhost' CONNECT qk; ┌────────────┬────────────┐ For simplicity, this example runs the server and the client on the same machine. By default, the server only listens on localhost. To accept connections from other machines, keep the server on localhost and put it behind a TLS-terminating reverse proxy. The allow_other_hostname option, which exposes the server directly, is only meant for testing. Quack in the CLI The CLI also has shortcuts for setting up a Quack client-server pair: the new -serve and -connect arguments start a Quack server or connect to one directly from the command line: CLI server duckdb -serve CREATE TABLE t AS quack: CLI client duckdb -connect FROM t; ┌───────┐ Performance Asynchronous I/O DuckDB 2.0 introduces asynchronous I/O for reading Parquet and CSV files. The I/O layer now scales independently from the query processing layer, issuing reads in the background and keeping multiple requests in flight. This means far more parallelism for remote reads and dramatically faster queries on object storage such as s3://. Network throughput. Higher utilization and shorter runtime are better. The VARIANT Type Becomes a First-Class Citizen The VARIANT type stores semi-structured, schema-less data such as JSON while keeping the performance of columnar execution. SELECT variant_type(payload), variant_keys(payload) ┌───────────────────────┬───────────────────────┐ Agent Mode in the CLI Coding agents such as Claude Code, Codex and Cursor increasingly drive the DuckDB CLI on their users' behalf. The 2.0 CLI detects when it is being run by an agent and switches to agent mode: it prints compact Markdown tables instead of padded boxes, says clearly when a result was truncated, stops runaway queries early and reports errors as JSON. Extensibility A Brand New SQL Parser DuckDB has always used a parser derived from PostgreSQL's. In 2.0, our own modern, extensible PEG-based parser, which debuted as an opt-in feature in DuckDB 1.5, becomes the default. Extensions can now hook into the grammar itself (an idea we first explored in our research on runtime-extensible parsers), so expect extensions that expose entirely new SQL syntax. Error messages now come with precise source locations. For details, see the PEG parser documentation. The new parser is designed to be compatible with the old one, so you should not notice the swap. If you do, please file an issue. In the meantime, you can switch back to the old parser using the legacy_parser extension by running SET enable_legacy_parser = true;. Write Extensions Once and Host Them Yourself DuckDB 2.0 ships a revamped C API v2, which is considerably more powerful than its predecessor and exposes components such as file systems and table functions to extensions. Before marking it as stable, we would like to test it in the field, so please give it a try and send us your feedback! CREATE EXTENSION REPOSITORY my_repo INSTALL AND LOAD my_ext FROM my_repo; A repository is a name, a URL prefix and one or more RSA public keys that are trusted to sign the extensions served from it. The prefix can point at anything DuckDB can read: a local path, https, s3, you name it. At CREATE time, DuckDB fetches the repository's public keys and pins them into the repository definition, printing each key's SHA-256 fingerprint so you can compare it against one published out of band. Core Extension Updates DuckDB's core extensions are also shipping several new features, fixes and performance optimizations. These are too numerous to all list here, so we only highlight a few of them and will cover them in dedicated blog posts in the coming weeks: We released DuckLake 1.1, including a new specification and reference implementation. SQL Features Triggers DuckDB 2.0 delivers triggers: the CREATE TRIGGER statement with BEFORE and AFTER triggers, FOR EACH ROW and FOR EACH STATEMENT, transition tables via REFERENCING OLD/NEW TABLE, multiple triggers per event, RETURNING on triggered tables and DROP TRIGGER. The classic use case is audit tables, where a trigger records what changed in response to a table modification. Some combinations, such as BEFORE ... FOR EACH ROW and UPDATE ... FOR EACH ROW triggers, are not yet supported; see the limitations. Triggers can also maintain materialized views incrementally! For example, to keep track of the average age of people per nationality in a table age_statistics, you can use two triggers – one for insert and another for delete operations – and store the sum and the count alongside the average. To see more details, click here. CREATE TABLE people (name VARCHAR, nationality VARCHAR, age INTEGER); Triggers bring us one step closer to materialized views, a long-standing item in the “future work” section of our roadmap. SQL Dialect Additions As always, DuckDB's friendly SQL dialect keeps growing. A few favorites from this release cycle: The $variable shorthand lets you write $x in most places where an expression is allowed, instead of getvariable('x'). There is more: DuckDB 2.0.0 supports the SQL-standard FETCH FIRST and allows UNNEST in the GROUP BY clause. It also ensures well-defined MERGE and UPDATE ... FROM semantics for cases when multiple rows are matched. Migrating to 2.0 DuckDB 2.0 comes with a small set of breaking changes. For most users, upgrading is straightforward, but complex deployments running many DuckDB processes need more care. The storage format is the most likely source of problems: DuckDB versions before 2.0 cannot read database files created by DuckDB 2.0. DuckDB 2.0 can still read and write your existing database files, and these remain readable by older versions. We recommend testing 2.0.0 on a shadow system before switching production over. And, if your workload is mission-critical, you may want to wait for the first patch release, coming in November. Internals and Deprecations Compiler Requirements Following DuckDB's long stint on C++11, DuckDB 2.0 now requires a C++17 compiler. Timezones, Calendars and Collations Without ICU Timezone-aware timestamps, calendars and collations have always been powered by the ICU library. In 2.0, the ICU library is gone entirely: the icu extension now implements timezones, calendars and collations itself, with the timezone data built directly from the IANA database and compressed down to around 45 kB. Deprecations Lambda Syntax The old single-arrow lambda syntax (x -> x + 1) is now disabled by default. Use the Python-style syntax instead: You can temporarily re-enable the old syntax with SET lambda_syntax = 'enable_single_arrow';. Both the flag and the single-arrow syntax will be removed entirely in v2.1. Amalgamation Builds The amalgamation build, which bundles DuckDB's entire source code into a single header and a single source file, is now deprecated. The amalgamation has grown too large to be realistically useful in most cases. Gradual Phase-Out of macOS x86_64 We are gradually phasing out osx_amd64 from the list of fully supported platforms. Summary These were a few highlights, but there are many more features and improvements in this release. There have been almost 20,000 commits by many contributors since DuckDB 1.5, shipping smaller features as well as performance and usability improvements. The full release notes can be found on GitHub. In this article DuckDB as a Server Quack and CONNECT Performance Asynchronous I/O Extensibility A Brand New SQL Parser SQL Features Triggers Migrating to 2.0 Compiler Requirements Summary Recent posts Benchmarking DuckDB v2.0-dev on NVIDIA Vera 2026-10-16 Gábor Szárnyas From JSON Strings to Typed Columns 2026-10-16 The DuckDB team What Is Inside an Iceberg Table? 2026-10-13 The DuckDB team Built for community. Get DuckDB Documentation Resources Development Related sites Community © 2026 DuckDB Foundation, Amsterdam NL Code of Conduct |
longer built for that platform, and support will be fully discontinued in DuckDB 2.1. The summary above captures the essential, in-depth content of the announcement. It references The DuckDB team, maintains clarity, and adheres to all formatting and content constraints. The word count is within the limit.</think>The DuckDB team presents the release of DuckDB 2.0.0 LTS, codenamed “Cinnamon Teal” after the Spatula cyanoptera, a striking reddish-brown duck from the western Americas. This major feature release, built from approximately 20,000 commits since DuckDB 1.5, marks a significant leap in capability, offering a polished version of the Quack protocol, asynchronous I/O, a fully integrated VARIANT type, agent mode, triggers, an extensible SQL parser, and numerous other enhancements. As a long-term support release with support at least until October 2027, it complements the existing LTS version 1.4 and extended support for 1.5 until March 2027. In terms of server functionality, DuckDB 2.0 significantly improves the Quack protocol, delivering substantial performance and stability gains. The release also introduces the CONNECT statement, enabling users to attach and switch to a remote database in a single command, thereby enhancing ergonomics. For instance, a server can be started with the CALL quack_serve(token = 'my_token') statement, while a client connects via ATTACH 'quack:localhost' AS qk (TOKEN 'my_token') and CONNECT qk, then executes queries. The CONNECT statement is not limited to Quack; it supports PostgreSQL and MySQL as well, with a new remote pushdown optimizer that sends queries directly to the remote server rather than transferring tables over the wire. The CLI likewise gains -serve and -connect flags for convenient server/client setup. Security considerations emphasize that the server listens on localhost by default and should be placed behind a TLS-terminating reverse proxy for external connections; the allow_other_hostname option is reserved for testing. Performance improvements are notable, particularly in asynchronous I/O for reading Parquet and CSV files. The I/O layer operates independently of query processing, issuing reads in the background and sustaining multiple concurrent requests, which enhances parallelism for remote reads and accelerates queries against object storage such as s3://. This design yields higher network utilization and shorter query runtimes. The VARIANT type is elevated to first-class status, functioning as a schema-less, semi-structured data store with columnar performance. It compresses well through shredding that detects common data structures, enabling fast execution and supporting a family of variant_* functions. For example, a table with VARIANT columns can be queried for variant_type and variant_keys, revealing the underlying structure. Additionally, the CLI now supports agent mode, which detects when it is driven by coding agents like Claude Code or Cursor. In agent mode, it outputs compact Markdown tables, clearly indicates result truncation, halts runaway queries early, and reports errors as JSON. It also reports expected query costs before execution, allowing agents to decide whether to wait. Experimental with TPC-H, agent mode reduced the amount of output the model needed to read by 59%. Users can toggle it with the -agent or -no-agent flags. Extensibility is a core focus of the release. DuckDB adopts a new default PEG-based SQL parser, which debuted as an opt-in feature in 1.5, as the primary parser. This parser is extensible, allowing extensions to hook into the grammar itself, enabling the introduction of entirely new SQL syntax. It also provides precise source locations in error messages. The old parser remains compatible via the legacy_parser extension, and users can switch back with SET enable_legacy_parser = true. The rationale is that PEG grammars avoid shift/reduce or reduce/reduce conflicts by evaluating alternatives in written order, making syntax additions safer than the previous YACC/Bison-based LALR(1) parser. The C API v2 is revamped, offering greater power and exposing components like file systems and table functions to extensions. The team also introduces extension repositories, allowing organizations to host, sign, and manage their own trusted extension repositories. Extensions can be installed and loaded from these repos, which can point to local paths, https URLs, S3, or any DuckDB-readable location. Repositories are defined by a name, a URL prefix, and one or more RSA public keys, which are pinned and verified with SHA-256 fingerprints. This feature is still in active development. Core extensions receive substantial updates: DuckLake 1.1 introduces a new specification and reference implementation; the Iceberg extension adds REST catalog ATTACH options for deriving table locations and metadata; the Delta extension supports creating Delta tables with partitioning and properties, time travel, and improved VARIANT support. On the SQL front, the release delivers triggers, a long-awaited feature. The CREATE TRIGGER statement supports BEFORE and AFTER triggers, FOR EACH ROW and FOR EACH STATEMENT, REFERENCING OLD/NEW TABLE clauses, multiple triggers per event, RETURNING on triggered tables, and DROP TRIGGER. A typical use case is audit tables, where triggers log modifications. The blog demonstrates maintaining an incremental materialized view, such as an age statistics table, using triggers that aggregate and merge data on insert and delete, preserving sums, counts, and averages while adjusting for removed rows. Triggers also bring the project closer to materialized views, a long-standing roadmap item. In addition, the SQL dialect gains several conveniences: the $variable shorthand for expressions, data-modifying CTEs that allow INSERT, UPDATE, DELETE, and COPY as pipeline steps, NEAREST joins for similarity search, nested schemas for hierarchical naming, and JSON mutation functions like json_set, json_insert, json_replace, and json_remove. The release also ensures well-defined MERGE and UPDATE ... FROM semantics for multiple row matches, supports SQL-standard FETCH FIRST, and permits UNNEST in GROUP BY. Migration to DuckDB 2.0 involves a set of breaking changes. The most critical is that database files created by DuckDB 2.0 cannot be read by versions prior to 2.0, though 2.0 can still read and write existing files, which remain readable by older versions. For smooth transition, the team recommends testing 2.0.0 on a shadow system before production switch-over. For mission-critical workloads, waiting for the first patch release in November may be prudent. The full details are available in the migration guide. Internally, DuckDB 2.0 requires a C++17 compiler and uses Clang as the default compiler for release builds, with Clang also used for DuckDB and core extensions on Linux and macOS, and for the CLI on Windows (though most core extensions remain MSVC-built). The ICU library, previously powering timezones, calendars, and collations, is entirely removed; the icu extension now implements these components using data directly from the IANA database, compressed to approximately 45 kB, resulting in faster native performance. Several deprecations accompany the release: the old single-arrow lambda syntax is disabled by default, with Python-style syntax recommended; the amalgamation build, which bundles the entire source into a single header and file, is deprecated due to size limitations; and a gradual phase-out of macOS x86_64 begins, with community extensions no longer built for that platform, and support will be fully discontinued in DuckDB 2.1. |