Sovereign by Design book cover

Sovereign by Design

Building a Production Query Engine on DataFusion

The complete journey of replacing Trino with a purpose-built Rust query engine. From first DataFusion query to distributed execution over Apache Iceberg, with OIDC auth passthrough, policy-as-plan-rewriting, and zero service accounts.

Work in progressThis book is actively being written and improved. New chapters and revisions are added regularly. Download the latest version below.
18Chapters
~440Pages
5Parts
316Commits in 15 days

Table of Contents

Part I — Why Build

Part II — First Query

Part III — Making It Real

Part IV — Going Distributed

Part V — Production

Read online

PDF not loading? Open in new tabor download as PDF / EPUB.

Open sourceThe SQE source code that accompanies this book is pending approval for open source release under the Apache 2.0 license. Once available, each chapter will reference specific commits, crates, and tests from the repository.

Get notified

New chapters, revisions, and the open source release — straight to your inbox.

AI-generated content label

Transparency note

AI-assisted creation

AI tools helped create and edit this book, including parts of the text and visual material. Jacob Verhoeks directed the work, reviewed and revised the content, and is responsible for the final published edition.