DF.write .format("delta") .mode("overwrite") .option("overwriteSchema", "True") .partitionBy(datefield) .saveAsTable(deltatable)