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 progress This book is actively being written and improved. New chapters and revisions are added regularly. Download the latest version below.
18 Chapters
~440 Pages
5 Parts
316 Commits 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

Open source The 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.