You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Ankit Raj Boudh (Jira)" <ji...@apache.org> on 2019/12/29 15:55:00 UTC

[jira] [Resolved] (SPARK-29437) CSV Writer should escape 'escapechar' when it exists in the data

     [ https://issues.apache.org/jira/browse/SPARK-29437?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ankit Raj Boudh resolved SPARK-29437.
-------------------------------------
    Resolution: Not A Problem

> CSV Writer should escape 'escapechar' when it exists in the data
> ----------------------------------------------------------------
>
>                 Key: SPARK-29437
>                 URL: https://issues.apache.org/jira/browse/SPARK-29437
>             Project: Spark
>          Issue Type: Bug
>          Components: Input/Output
>    Affects Versions: 2.4.3
>            Reporter: Tomasz Bartczak
>            Priority: Trivial
>
> When the data contains escape character (default '\') it should either be escaped or quoted.
> Steps to reproduce: [https://gist.github.com/kretes/58f7f66a0780681a44c175a2ac3c0da2]
>  
> The effect can be either bad data read or sometimes even unable to properly read the csv, e.g. when escape character is the last character in the column - it break the column reading for that row and effectively break e.g. type inference for a dataframe



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org