Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-28779

CSV writer doesn't handle older Mac line endings

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Not A Problem
    • Affects Version/s: 2.3.0, 2.4.0
    • Fix Version/s: None
    • Component/s: Spark Core
    • Labels:
      None

      Description

      The spark csv writer does not consider "\r"  as a newline in string type columns. As a result, the resulting csv are not quoted, and they get corrupted.

      All \n, \r\n and \r should be considered as newline to allow robust csv serialization.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              parisni nicolas paris
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: