1

I am writing a data frame using spark csv library. I am using spark 1.6. I was wondering if there is a way to specify the new line character. Usually, I think it is \n.

Or if not, is there a good solution to changing the new line character?

view.coalesce(1).write.format("com.databricks.spark.csv").option("header", "true").option("delimiter", "\036").option("charset","ascii").save(location);
OneCricketeer
  • 179,855
  • 19
  • 132
  • 245
Defcon
  • 807
  • 3
  • 15
  • 36

0 Answers0