title: How to replace nulls with empty string ("") in Apache spark using scala
body: <p>I am working with huge datasets (Contains 332 fields) in Apache spark with scala ( which except one field, remaining 331 can be null) of around 10M records. But I would like to replace null with a blank string (""). What would be the best way to achieve this as I have a huge number of fields?
  I want to handle nulls while importing this data set so I will be safe while performing transformations or exporting to DF. So I have created case class with 332 fields, what would be the best way to handle these nulls? I can use Option(field).getOrElse(""), but I guess it's not the best way as I have huge number of fields. Thank you!!</p>