Hubert-Dudek
Databricks MVP

.save("Partition file path") - it should be a folder path.

Additionally what runtime are you using? It was like that long before spark 3.x check it with command

sc.version


My blog: https://databrickster.medium.com/

View solution in original post