SpinTheMic
Pro

Explain it in 60 seconds

Transformations vs actions

Data Engineering · Spark · Beginner

What is the difference between transformations and actions in Spark?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Transformations like select, filter and join define a new DataFrame but don't run.
  • Actions like count, show, collect and write trigger execution.
  • Spark builds a plan of transformations and runs it on an action.
  • Each action can recompute the whole lineage unless data is cached.
  • Knowing this helps explain where time is spent.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics