[ https://issues.apache.org/jira/browse/SPARK-18579?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Felix Cheung resolved SPARK-18579. ---------------------------------- Resolution: Fixed Assignee: Hyukjin Kwon Fix Version/s: 2.2.0 Target Version/s: 2.2.0 > spark-csv strips whitespace (pyspark) > -------------------------------------- > > Key: SPARK-18579 > URL: https://issues.apache.org/jira/browse/SPARK-18579 > Project: Spark > Issue Type: Bug > Components: Input/Output > Affects Versions: 2.0.2 > Reporter: Adrian Bridgett > Assignee: Hyukjin Kwon > Priority: Minor > Fix For: 2.2.0 > > > 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. -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org