title: Databricks - overwriteSchema
body: <p>Multiple times I've had an issue while updating a delta table in Databricks where overwriting the Schema fails the first time, but is then successful the second time. The solution to my problem was to simply run it again, and I'm unable to reproduce at this time. If it happens again I'll come back and post the exact error message, but it was in essence a Schema Mismatch error. Has anyone else had a similar problem?</p>
  <pre><code>overwriteSchema = True
  DF.write \
  .format(&quot;delta&quot;) \
  .mode(&quot;overwrite&quot;) \
  .option(&quot;overwriteSchema&quot;, overwriteSchema) \
  .partitionBy(datefield) \
  .saveAsTable(deltatable)
  </code></pre>