An in-process analytical SQL database that queries CSV, JSON, Parquet and Iceberg files directly, from a laptop to a large server.
open sourceMITself-hostablefree
DuckDB is an analytical (OLAP) SQL database that runs inside your process, like SQLite, with no server to install and no external dependencies. It speaks a PostgreSQL-inspired SQL dialect with a large function library and window functions, gives ACID transactions through its own MVCC, and stores data in a single-file database or in lakehouse formats. It reads and writes CSV, JSON, Parquet, Iceberg and Delta Lake, locally or in object storage on AWS, Azure, Google Cloud, Cloudflare and Hugging Face, and can query Pandas data in Python without copying it. Extensions add functions and formats. There are clients for C, C++, Python, R, Go, Java, Node.js, Rust and ODBC, a command-line shell, and DuckDB-Wasm for browsers. The Quack protocol lets one DuckDB instance query another remotely, and DuckLake is its lakehouse format with a SQL database as the catalog. DuckDB and these projects are MIT-licensed and governed by the non-profit DuckDB Foundation.
Problems it solves
- run SQL on a big CSV or Parquet file without loading it into a database server
- pandas is too slow and runs out of memory on my dataset
- an embedded database for analytics, like SQLite but fast for aggregations
- query Parquet files in S3 with SQL from my laptop
- read and write Iceberg tables without a Spark cluster
- analytics in the browser without a backend
Features
- in-process, no server and no external dependencies
- PostgreSQL-inspired SQL with window functions
- ACID transactions via MVCC
- single-file database
- reads and writes CSV, JSON, Parquet, Iceberg and Delta Lake
- queries object storage on AWS, Azure, Google Cloud, Cloudflare and Hugging Face
- zero-copy queries on Pandas data
- extensions and community extensions
- clients for C, C++, Python, R, Go, Java, Node.js, Rust and ODBC
- command-line shell
View 4 more
- DuckDB-Wasm for browsers
- Quack client-server protocol
- DuckLake lakehouse format
- secondary indexes
Alternatives
The same job
These do what DuckDB does.
- ClickHouse Build. Observe. Secure. At any scale.
- SQLite Small. Fast. Reliable. Choose any three.
- chDB The power of ClickHouse, in-process
- Polars Fast open source dataframe and query engine for Python, Rust and SQL
- pandas Fast, powerful, flexible and easy to use open source data analysis and manipulation tool
- Apache Spark Unified engine for large-scale data analytics
