Skip to content

Revert "[SPARK-32481][CORE][SQL] Support truncate table to move data to trash" #30463

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

gatorsmile
Copy link
Member

What changes were proposed in this pull request?

This reverts commit 065f173, which is not part of any released version. That is, this is an unreleased feature

Why are the changes needed?

I like the concept of Trash, but I think this PR might just resolve a very specific issue by introducing a mechanism without a proper design doc. This could make the usage more complex.

I think we need to consider the big picture. Trash directory is an important concept. If we decide to introduce it, we should consider all the code paths of Spark SQL that could delete the data, instead of Truncate only. We also need to consider what is the current behavior if the underlying file system does not provide the API Trash.moveToAppropriateTrash. Is the exception good? How about the performance when users are using the object store instead of HDFS? Will it impact the GDPR compliance?

In sum, I think we should not merge the PR #29552 without the design doc and implementation plan. That is why I reverted it before the code freeze of Spark 3.1

Does this PR introduce any user-facing change?

Reverted the original commit

How was this patch tested?

The existing tests.

@gatorsmile
Copy link
Member Author

@dongjoon-hyun
Copy link
Member

Got it, @gatorsmile .

@HyukjinKwon
Copy link
Member

I am okay with this revert.

@Udbhav30
Copy link
Contributor

Sure got it

@sunchao
Copy link
Member

sunchao commented Nov 23, 2020

Thanks for pinging @gatorsmile . Agree with your reasoning and +1 on this.

@SparkQA
Copy link

SparkQA commented Nov 23, 2020

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/36136/

@viirya
Copy link
Member

viirya commented Nov 23, 2020

Looks okay.

@SparkQA
Copy link

SparkQA commented Nov 23, 2020

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/36136/

@SparkQA
Copy link

SparkQA commented Nov 23, 2020

Test build #131533 has finished for PR 30463 at commit 32a711d.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@HyukjinKwon
Copy link
Member

Merged to master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants