spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rui Li (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-24116) SparkSQL inserting overwrite table has inconsistent behavior regarding HDFS trash
Date Thu, 03 May 2018 07:16:00 GMT

    [ https://issues.apache.org/jira/browse/SPARK-24116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16462040#comment-16462040
] 

Rui Li commented on SPARK-24116:
--------------------------------

To reproduce:
{code}
create table test_text(x int);

insert overwrite table test_text values (1),(2);

insert overwrite table test_text values (3),(4); -- the old data is moved to trash

create table test_parquet(x int) using parquet;

insert overwrite table test_parquet values (1),(2);

insert overwrite table test_parquet values (3),(4); -- the old data is not moved to trash
{code}

> SparkSQL inserting overwrite table has inconsistent behavior regarding HDFS trash
> ---------------------------------------------------------------------------------
>
>                 Key: SPARK-24116
>                 URL: https://issues.apache.org/jira/browse/SPARK-24116
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.1.0
>            Reporter: Rui Li
>            Priority: Major
>
> When inserting overwrite a table, the old data may or may not go to trash based on:
>  # Date format. E.g. text table may go to trash but parquet table doesn't.
>  # Whether table is partitioned. E.g. partitioned text table doesn't go to trash while
non-partitioned table does.



--
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


Mime
View raw message