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 when using multi-line. 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: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
