How to deal this type data when fields are delimited by new line in spark

apache-spark
scala

#1

5TZfo
how can i make fields comma separated and records by line separated using spark