[Improvement] When dropping table, data should be moved to trash instead of being deleted directly
- Dominant language
- Java
- Stars
- 3.4k
- Forks
- 1.4k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 396
Description
### Search before asking
- [x] I searched in the [issues](https://github.com/apache/paimon/issues) and found nothing similar.
### Motivation
In Paimon, when dropping table, the data is directly removed. We can implement a feature where data is first moved to trash, making it easier to recover accidentally deleted data.
### Solution
Provides a method called `moveToTrash` that is called when data is cleaned up to move data to the trash.
### Anything else?
_No response_
### Are you willing to submit a PR?
- [x] I'm willing to submit a PR!
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by tracing the table-drop cleanup path and identify where data is currently removed. The issue names the proposed moveToTrash method but no files or tests; confirm the trash location, recovery expectations, and cleanup callers before making changes. Done means dropped-table data is moved to trash rather than deleted directly, with tests covering the new behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- data-engineering, databases
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100