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

DataFrameWriter - CSV options "ignoreLeadingWhiteSpace" and "ignoreTrailingWhiteSpace" Not working

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 2.0.1
    • None
    • Spark Core
    • None

    Description

      Hi, I found that by default CSV writer trims white spaces around field values. I tried to disable that by setting following options to true but its not working.
      "ignoreLeadingWhiteSpace" and "ignoreTrailingWhiteSpace"
      Since names of the options are not very clear I also tried setting them to false but it still trimming.
      I also found following jira which might be related to this.
      https://github.com/databricks/spark-csv/issues/304

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tenstriker nirav patel
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: