his is a common text file format in which each line represents a single record,
Wrong. Per the CSV standard found in in RFC 4180 there can be newline characters embedded inside a field in a record. These have to be enclosed in double quotes. Spark does support this with the multiline option, however if you set multiline to True it will have to read the CSV file using a single worker and you won't be able to process the data in parallel.
Share this highlighthttp://www.safaribooksonline.com/a/spark-the-definitive/19503624/