# Catalyst

Glossary, read 10 Nov 2026

**The short answer.** Catalyst is the query optimizer inside Spark SQL. It turns a SQL string or DataFrame into a logical plan, rewrites it with rules such as predicate pushdown and column pruning, and picks a physical plan. The Apache Spark site says Catalyst automatically rewrites queries to execute more efficiently.

Most native Spark accelerators keep Catalyst in charge of planning and replace only the execution of the chosen physical plan. That is why they can run existing SQL and DataFrame code unchanged.

Where an operator has no native version, the plan keeps the Spark operator. See [operator fallback](/glossary/operator-fallback/).

## A sourced example

Databricks's Photon documentation says Catalyst still plans the query while Photon replaces the JVM execution layer with a C++ runtime for supported operations.

## Sources

- Apache Spark: Spark SQL overview: https://spark.apache.org/sql/ (read 10 Nov 2026)

Last reviewed 10 Nov 2026. Canonical: https://sparkaccelerationcompare.com/glossary/catalyst/
