May 2017
Intermediate to advanced
294 pages
7h 33m
English
Most of the power of Spark SQL comes from the Catalyst optimizer, so it makes sense to spend some time understanding it. The following diagram shows where exactly the optimization occurs along with the queries:

The Catalyst optimizer primarily leverages functional programming constructs of Scala, such as pattern matching. It offers a general framework for transforming trees, which we use to perform analysis, optimization, planning, and runtime code generation.
This optimizer has two primarilly goals:
Read now
Unlock full access