Catalyst optimizer
One of the components that work with Spark structured API is Catalyst Optimizer. The aim of the catalyst optimizer is to provide performance benefits for structured APIs such as SQL, DataFrame, and dataset. The idea is that when you have schema information, you can optimize the query plan. For each query submitted by the user, it first gets converted to a Logical Query plan. This Logical Query plan has high-level information about the query in form of a tree of expressions and operations. Catalyst optimizer then performs a series of transformations on this logical plan to come up with the most efficient and Optimized Query plan. This optimized Logical Query plan is then converted to a physical query plan. The physical query ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access