Why does Spark only lazily calculate RDD??

Why does Spark only lazily calculate RDD? Why is it really calculated only when it is used in an action operation for the first time?

Oct.29,2021

Computing resources are so precious, why do useless calculations?


not only is the computing resource valuable, but what I think is more important is that spark has a concept of pipeline and DAG.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1ea1c17-1b82.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1ea1c17-1b82.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?