2

I am trying to write some contents of text file to a csv file using spark databricks write package. However, i am getting NUL character getting added to start and end of each line Output : NUL"Transactions","Exit","Core1.0","Trade"2018-12-10T10:47:42Z"NUL

Expected output :"Transactions","Exit","Core1.0","Trade"2018-12-10T10:47:42Z"

code below :

df.write
  .mode("overwrite")
  .option("header","false")
  .option("delimiter",",")
  .option("quote","\u00000")
  .csv(path)

0 Answers0