Apache Spark Big Data (50 Qs)•Part 1: Basic & Foundational Concepts (Junior / Entry-Level)
What is Lazy Evaluation in Apache Spark?
junior Levelapache-sparkBasic
In Simple Words: Spark does not execute transformations immediately when they are called:
- Instead, it builds an execution plan recorded in a DAG (Directed Acyclic Graph).
- Execution only begins when an Action (e.g.
count(),collect(),write) is called. - Benefit: Enables the Catalyst Optimizer to analyze the entire workflow, prune unused columns, push down predicates, and combine operations into a single execution stage!