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

spark-csv strips whitespace (pyspark)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.0.2
    • 2.2.0
    • Input/Output
    • None

    Description

      ignoreLeadingWhiteSpace and ignoreTrailingWhiteSpace are supported on CSV reader (and defaults to false).

      However these are not supported options on the CSV writer and so the library defaults take place which strips the whitespace.

      I think it would make the most sense if the writer semantics matched the reader (and did not alter the data) however this would be a change in behaviour. In any case it'd be great to have the option to strip or not.

      Attachments

        Issue Links

          Activity

            People

              hyukjin.kwon Hyukjin Kwon
              abridgett Adrian Bridgett
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: