You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2019/07/02 08:18:03 UTC

[GitHub] [spark] jonathanneo edited a comment on issue #22503: [SPARK-25493][SQL] Use auto-detection for CRLF in CSV datasource multiline mode

jonathanneo edited a comment on issue #22503: [SPARK-25493][SQL] Use auto-detection for CRLF in CSV datasource multiline mode
URL: https://github.com/apache/spark/pull/22503#issuecomment-507572280
 
 
   @HyukjinKwon CSVs with windows style CR-LF ('\r\n') still doesn't work for me. 
   
   I am using Spark 2.4.3 and using the PySpark API. 
   
   File: [test123-CRLF.zip](https://github.com/apache/spark/files/3349006/test123-CRLF.zip)
   
   When I run the following: 
   `dfCSV = sqlContext.read.format("csv").options(header="true", inferSchema="true", delimiter=",", encoding="UTF-8",escape='"', multiLine="true").load("test123-CRLF.csv")` 
   `print(dfCSV.first()) # print the first row`
   
   It returns: 
   Row(Test1='hello', Test2 ='world\r')

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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