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

spark-csv strips whitespace (pyspark)

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete CommentsDelete
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            gurwls223 Hyukjin Kwon Assign to me
            abridgett Adrian Bridgett
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment