how can you identify whether a given operation is transformation or action?
Answer Posted / Janak Kumar
Transformations are operations in Apache Spark that create a new Dataset, DataFrame, or RDD from an existing one but do not execute the actions immediately. They return new logical plans and do not trigger any physical data processing. Examples of transformations include map(), filter(), join(). Actions, on the other hand, trigger the execution of the entire logical plan and generate a physical result such as collect(), count(), saveAsTextFile(). The difference is that transformations do not cause any actual data to be processed or materialized until an action is called.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers