You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Dongjoon Hyun (Jira)" <ji...@apache.org> on 2020/03/11 17:38:00 UTC
[jira] [Comment Edited] (SPARK-25193) insert overwrite doesn't
throw exception when drop old data fails
[ https://issues.apache.org/jira/browse/SPARK-25193?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17057252#comment-17057252 ]
Dongjoon Hyun edited comment on SPARK-25193 at 3/11/20, 5:37 PM:
-----------------------------------------------------------------
This is fixed at 3.0.0 via SPARK-30034 after SPARK-23710
was (Author: dongjoon):
This is fixed at 3.0.0 via SPARK-23710
> insert overwrite doesn't throw exception when drop old data fails
> -----------------------------------------------------------------
>
> Key: SPARK-25193
> URL: https://issues.apache.org/jira/browse/SPARK-25193
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 2.2.0
> Reporter: chen xiao
> Priority: Major
> Labels: correctness
>
> dataframe.write.mode(SaveMode.Overwrite).insertInto(s"$databaseName.$tableName")
> Insert overwrite mode will drop old data in hive table if there's old data.
> But if data deleting fails, no exception will be thrown and the data folder will be like:
> hdfs://uxs_nbp/nba_score/dt=2018-08-15/seq_num=2/part-00000
> hdfs://uxs_nbp/nba_score/dt=2018-08-15/seq_num=2/part-000001534916642513.
> Two copies of data will be kept.
--
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