Skip to content

Instantly share code, notes, and snippets.

@KeesCBakker
Created November 9, 2019 09:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KeesCBakker/2f0bcf37f5b1320a78669d4483f03fa5 to your computer and use it in GitHub Desktop.
Save KeesCBakker/2f0bcf37f5b1320a78669d4483f03fa5 to your computer and use it in GitHub Desktop.
(spark
.createDataFrame([], df.schema)
.write
.option("mergeSchema", "true")
.format("delta")
.mode("append")
.save(delta_location))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment