Nidhi Gupta
Apr 27, 2024

--

In case its existing column then we need to run just alter command or still need to run this also.

df = spark.read.table("sales")

df.write.format("delta")

.mode("overwrite")

.option("overwriteSchema", "true")

.partitionBy("SnapshotDate")

.saveAsTable("sales")

--

--

Nidhi Gupta
Nidhi Gupta

Written by Nidhi Gupta

Azure Data Engineer 👨‍💻.Heading towards cloud technologies expertise✌️.

No responses yet