You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2017/10/12 02:45:03 UTC

[jira] [Assigned] (SPARK-22258) Writing empty dataset fails with ORC format

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

Apache Spark reassigned SPARK-22258:
------------------------------------

    Assignee:     (was: Apache Spark)

> Writing empty dataset fails with ORC format
> -------------------------------------------
>
>                 Key: SPARK-22258
>                 URL: https://issues.apache.org/jira/browse/SPARK-22258
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.3.0
>            Reporter: Dongjoon Hyun
>            Priority: Critical
>
> Since SPARK-8501, Spark doesn't create an ORC file for empty data sets. However, SPARK-21669 is trying to get the length of the written file and fails with FileNotFoundException. This is a regression at 2.3.0 only. We had better have a test case to prevent future regression.
> {code}
> scala> Seq("str").toDS.limit(0).write.format("orc").save("/tmp/a")
> 17/10/11 19:28:59 ERROR Utils: Aborting task
> java.io.FileNotFoundException: File file:/tmp/a/_temporary/0/_temporary/attempt_20171011192859_0000_m_000000_0/part-00000-aa56c3cf-ec35-48f1-bb73-23ad1480e917-c000.snappy.orc does not exist
> 	at org.apache.hadoop.fs.RawLocalFileSystem.deprecatedGetFileStatus(RawLocalFileSystem.java:611)
> 	at org.apache.hadoop.fs.RawLocalFileSystem.getFileLinkStatusInternal(RawLocalFileSystem.java:824)
> 	at org.apache.hadoop.fs.RawLocalFileSystem.getFileStatus(RawLocalFileSystem.java:601)
> 	at org.apache.hadoop.fs.FilterFileSystem.getFileStatus(FilterFileSystem.java:421)
> 	at org.apache.spark.sql.execution.datasources.BasicWriteTaskStatsTracker.getFileSize(BasicWriteStatsTracker.scala:60)
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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