1. Home
  2. The Data Engineering Show - Podcast

Mar 18, 2025

Why DuckDB built its own Parquet reader

Hannes Mühleisen

39 min → 2:14

Overview

DuckDB co-creator Hannes Mühleisen explains the database's origin, its commitment to extreme portability and zero dependencies, and why he is skeptical about integrating AI directly into core database engines.

3 things to know

Mühleisen calls DuckDB the SQLite for complex data analysis

Hannes Mühleisen positions DuckDB as the SQLite for analytics because it is built for large-scale summaries and complex data queries rather than everyday transactions.

More

This analogy is used to position DuckDB.

▶ Watch at 3:45

Mühleisen: DuckDB can run on phones and space satellites

DuckDB co-creator Hannes Mühleisen says the open-source database is designed to deploy easily and run analytical tasks anywhere, from phones to space satellites.

More

An open-source, in-process, relational database optimized for analytical workloads.

▶ Watch at 1:57

Mühleisen: DuckDB follows Linux to run on any hardware

Hannes Mühleisen explains that DuckDB prioritizes universal compatibility like Linux, allowing the database to run on IBM mainframes and custom processors without special adjustments.

▶ Watch at 16:41

Also in this episode

Mühleisen says DuckDB built a custom Parquet file reader

Hannes Mühleisen says the DuckDB team built a custom Parquet reader from scratch to avoid heavy outside libraries like Apache Arrow and keep the software small and self-contained.

▶ Watch at 17:39

Mühleisen compares AI inside core database engines to Bitcoin

Hannes Mühleisen compares the hype around putting unproven AI tools inside core database engines to Bitcoin, arguing that AI belongs in applications like text-to-SQL instead.

More

The latter is viewed with skepticism, comparing the hype to Bitcoin and arguing AI's value is in applications like text-to-SQL, not fundamental engine components.

▶ Watch at 22:13

Quotes

“So we actually call ourselves sometimes the SQLite for analytics because it's kind of explained the design or the original sort of design goal of DuckDB very well.”

▶ Watch at 3:45

“It's more similar to making like Linux, where... who knows what somebody glued together in their shed and it should still run. Yeah, that's exactly the approach that we have.”

▶ Watch at 16:41

“If you want to put your embeddings in DuckDB, they will be competently stored... But... will you build a learned index on top of that, Hannes? No.”

▶ Watch at 32:51

3 more quotes

“it's possible to run DuckDB on like, you know, a phone, a browser, a space satellite, you name it.”

▶ Watch at 1:57

“We would have preferred not to build our own Parquet reader, okay? Like, that would have been great... because it's not like I like Parquet specifically.”

▶ Watch at 17:39

“I see AI on the same level of idiocy as Bitcoin personally.”

▶ Watch at 22:13

Full summary

Episode Overview

  • This episode features Hannes Mühleisen, co-creator of DuckDB, who introduces the database as a universal, in-process tool for analytical workloads, often described as "the SQLite for analytics."
  • The core design philosophy of DuckDB is its commitment to extreme portability and zero dependencies, which influences major engineering decisions like building a custom Parquet reader from scratch.
  • The conversation covers DuckDB's origin story, stemming from postdoctoral research in the Netherlands and expertise in columnar storage systems.
  • Hannes expresses strong skepticism about integrating AI directly into the core database engine for tasks like query optimization, contrasting the hype with the real-world value of AI in user-facing applications.

Key Concepts

  • DuckDB Definition: An open-source, in-process, relational database optimized for analytical workloads. It's designed to be easy to deploy and can run anywhere, from phones to space satellites.
  • "The SQLite for Analytics": This analogy is used to position DuckDB. While SQLite excels at transactional tasks (OLTP), DuckDB is purpose-built for large-scale aggregations and complex analytical queries (OLAP).
  • Portability and Zero-Dependency Philosophy: The central design goal is universal compatibility, allowing DuckDB to run on any hardware (e.g., IBM mainframes, custom CPUs) without platform-specific optimizations, similar to the philosophy behind Linux.
  • Custom Parquet Reader: The team undertook the massive effort of building their own Parquet reader to avoid the heavy dependencies of existing libraries like Apache Arrow, ensuring DuckDB remains a small, self-contained, and portable binary.
  • Stance on AI in Databases: The speaker differentiates between supporting AI workloads (like storing vector embeddings) and incorporating unproven AI techniques (like learned indexes) into the core database engine. The latter is viewed with skepticism, comparing the hype to Bitcoin and arguing AI's value is in applications like text-to-SQL, not fundamental engine components.

Quotes

  • At 1:57 - "it's possible to run DuckDB on like, you know, a phone, a browser, a space satellite, you name it." - Hannes highlights the extreme portability and universal applicability of DuckDB.
  • At 3:45 - "So we actually call ourselves sometimes the SQLite for analytics because it's kind of explained the design or the original sort of design goal of DuckDB very well." - Hannes explains the popular analogy used to position DuckDB in the market.
  • At 16:41 - "It's more similar to making like Linux, where... who knows what somebody glued together in their shed and it should still run. Yeah, that's exactly the approach that we have." - Comparing their development philosophy to that of Linux, which aims for universal compatibility across countless unknown hardware setups.
  • At 17:39 - "We would have preferred not to build our own Parquet reader, okay? Like, that would have been great... because it's not like I like Parquet specifically." - The guest explains that building their own Parquet reader was a decision of necessity, not preference, made to avoid the heavy dependencies of existing libraries like Arrow.
  • At 22:13 - "I see AI on the same level of idiocy as Bitcoin personally." - The guest voices his strong skepticism about the hype surrounding AI's role within core database engines, contrasting it with more practical applications.
  • At 32:51 - "If you want to put your embeddings in DuckDB, they will be competently stored... But... will you build a learned index on top of that, Hannes? No." - Differentiating between supporting AI workloads and incorporating unproven AI-based techniques like learned indexes into the core engine.

Takeaways

  • Select the right database for the workload; use a tool like DuckDB for in-process analytical queries on large datasets and SQLite for transactional operations, as they are optimized for different tasks.
  • Prioritize architectural simplicity and minimal dependencies in software projects, even if it requires more upfront effort, as this approach leads to greater long-term portability, stability, and control.
  • Critically evaluate technological hype by distinguishing between practical, user-facing applications (e.g., AI for text-to-SQL) and unproven integrations into core infrastructure that may not solve a real problem.

Watch the full episode 39 min

Read along with the audio summary

Hannes Mühleisen, co-creator of DuckDB, says he personally sees the hype around putting artificial intelligence inside core database engines on the same level of idiocy as Bitcoin. In this episode that came out on March 18, 2025, Hannes discusses the engineering philosophy behind DuckDB. By the end, you will learn how this universal tool works, why the team avoids outside software dependencies, and where AI actually belongs in your data stack.

How a single database can run on both your phone and a space satellite.

DuckDB grew out of postdoctoral research in the Netherlands and expertise in columnar storage systems. It is an open-source, in-process, relational database. Because it is designed to be easy to deploy, Hannes points out that it can run on a phone, a web browser, or even a space satellite.

Why DuckDB is called the SQLite for analytics.

SQLite excels at transactional tasks, often called OLTP. Hannes says his team sometimes calls DuckDB the SQLite for analytics because it takes that same easy setup and applies it to complex analytical queries and large-scale aggregations, known as OLAP. When you are choosing a database for your next project, use SQLite for transactional operations and pick a tool like DuckDB for in-process analytical queries on large datasets.

The Linux-inspired philosophy that lets software run on anything.

To make a database truly universal, the creators had to give up platform-specific optimizations. Their central design goal is universal compatibility and zero outside dependencies, allowing the software to run on everything from IBM mainframes to custom central processing units. Hannes compares this to the philosophy behind the Linux operating system, where someone might glue together random hardware in their shed and the software still has to run on it.

That strict commitment to zero dependencies forced the team to make a massive engineering sacrifice.

Why the DuckDB team built their own Parquet file reader from scratch.

Hannes admits his team would have preferred not to build their own reader for Parquet because he does not even like Parquet specifically. However, existing code libraries for reading those files, such as Apache Arrow, come with heavy software dependencies that would bloat the system. By taking on the massive effort to write a custom reader from scratch, they kept DuckDB as a small, self-contained, and portable program file. In your own software projects, prioritize architectural simplicity and minimal dependencies, even if it takes more upfront effort, to gain long-term portability, stability, and control.

Where artificial intelligence belongs in a database, and where it does not.

There is a big difference between storing AI data and letting AI run the database itself. Hannes explains that DuckDB will competently store your vector embeddings, and he sees real value in user-facing tools like turning plain text into database queries. However, he refuses to put unproven AI techniques like learned indexes or AI query optimization into the core engine. When you evaluate new technology hype, distinguish between practical, user-facing applications and unproven integrations into core infrastructure that may not solve a real problem.

Great software comes from matching the right tool to the job and fiercely protecting simplicity. Whether you are choosing between transactional and analytical databases or deciding which new technology to trust, keep your core systems lean and independent. If someone glues hardware together in a shed, your code should still run.

More from The Data Engineering Show - Podcast

Related Episodes