adspace


Why is Transformation lazy in Spark?

Answer Posted / Romi Awasthi

Transformations are lazy in Spark to optimize resource utilization. When a transformation is called, it doesn't immediately execute the action on all data; instead, it creates a logical plan outlining the steps required to process the data. The physical execution starts only when an action like collect(), count(), or save() is triggered.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how RDDs work with Scala in Spark

408


What is meant by Transformation? Give some examples.

383


List the advantage of Parquet file in Apache Spark?

524


What is the latest version of spark?

339