title: Is 'load' command in spark an action or transformation?
body: <pre><code>df = spark.read.format('csv').load('...')
  </code></pre>
  
  <p>It is my understanding that , load is a transformation and executes only when an action is called. However, while the load statement is being executed, it appears to be an action under the Spark UI.</p>
  
  <p>Edit:</p>
  
  <p>From the comments/answers , i inferred that load may or may not be a transformation but <strong>not</strong> definitely an action which is great and understandable.</p>
  
  <p>If it is not an action why it is creating a DAG? 
  It creates a DAG just for a load statement not just WholeStageCodegen(which is in SQL tab). 
  Please see the below image: 
  <a href="https://i.stack.imgur.com/LZEW3.png" rel="noreferrer">Screenshot</a></p>