title: Spark SQL execute multiple commands as an ACID unit
body: <p>Is there a way to force multiple SQL commands to execute as a unit from pySpark ?
  I'll have </p>
  
  <pre><code>Create table B;
  Drop table A;
  Rename table B as table A;
  </code></pre>
  
  <p>I would like them to execute as a unit. If something goes wrong such as B is not properly created, I would not want to drop A.</p>