You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "jifei_yang (JIRA)" <ji...@apache.org> on 2018/01/19 06:40:00 UTC
[jira] [Commented] (SPARK-23148) spark.read.csv with multiline=true
gives FileNotFoundException if path contains spaces
[ https://issues.apache.org/jira/browse/SPARK-23148?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16331817#comment-16331817 ]
jifei_yang commented on SPARK-23148:
------------------------------------
If you must do this, I think it is best to add escaping it.
> spark.read.csv with multiline=true gives FileNotFoundException if path contains spaces
> --------------------------------------------------------------------------------------
>
> Key: SPARK-23148
> URL: https://issues.apache.org/jira/browse/SPARK-23148
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 2.4.0
> Reporter: Bogdan Raducanu
> Priority: Major
>
> Repro code:
> {code:java}
> spark.range(10).write.csv("/tmp/a b c/a.csv")
> spark.read.option("multiLine", false).csv("/tmp/a b c/a.csv").count
> 10
> spark.read.option("multiLine", true).csv("/tmp/a b c/a.csv").count
> java.io.FileNotFoundException: File file:/tmp/a%20b%20c/a.csv/part-00000-cf84f9b2-5fe6-4f54-a130-a1737689db00-c000.csv does not exist
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org