DE Mastery GitHub

Apache Spark · SPK-05

Catalyst and the physical plan

From your world. Redshift EXPLAIN and the query planner

Practice quiz with instant feedback. For a scored run that counts toward your local progress, use uv run de quiz SPK-05.

1In which Catalyst stage do predicate pushdown and column pruning happen?
2You read a Parquet file and filter on currency = 'USD'. The FileScan node shows PushedFilters: []. What is the most likely cause?
3A query selects only order_id and currency from a 7-column Parquet table. In the formatted plan, what proves that column pruning worked?
4Which explain mode prints the physical plan as a numbered tree with a details section?
5Why does pushing a filter into the Parquet scan reduce work beyond just filtering fewer rows later?
6You filter orders and then join to a small products table. Catalyst moves the filter below the join in the optimized logical plan. What is this rewrite called, and why does it help?
7Which statement about df.explain() is TRUE?