I published an article on the Cockroach Labs Blog: Local and distributed query processing in CockroachDB. In this article, I explain the software architecture and overall mechanisms in the SQL execution engine of CockroachDB, in the code leading up to version v1.1. Also available via the Wayback Machine.