You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "nirav patel (JIRA)" <ji...@apache.org> on 2017/03/14 00:51:41 UTC

[jira] [Commented] (SPARK-18579) spark-csv strips whitespace (pyspark)

    [ https://issues.apache.org/jira/browse/SPARK-18579?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15923338#comment-15923338 ] 

nirav patel commented on SPARK-18579:
-------------------------------------

I am having same issue. Created SPARK-19942. It seems like this was a issue in spark-csv module as well and they fixed it but not sure it got ported in spark module.

> 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
>            Priority: Minor
>
> 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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org