I'm using scala as programming language in my azure databricks notebook, where my dataframe giving me accurate result, but when I'm trying to store the same in csv it shifting the cell where comma(,) is coming
spark.sql("""
SELECT * FROM invalidData
""").coalesce(1)
.write
.option("header", "true")
.format("com.databricks.spark.csv")
.mode("overwrite")
.save(s"$dbfsMountPoint/invalid/${fileName.replace(".xlsx", ".csv")}")
Here one column having data like 256GB SSD, Keyb.:, so while writing it using above function it show string after comma(,) in another cell. Any spark inbuilt solution appriciated...