You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@paimon.apache.org by "cxzl25 (via GitHub)" <gi...@apache.org> on 2026/05/12 10:29:12 UTC
Re: [PR] [improvement] When dropping table, data should be moved to trash instead of being deleted directly [paimon]
cxzl25 commented on code in PR #6512:
URL: https://github.com/apache/paimon/pull/6512#discussion_r3225630643
##########
paimon-common/src/main/java/org/apache/paimon/fs/FileIO.java:
##########
@@ -226,6 +226,13 @@ default FileStatus[] listDirectories(Path path) throws IOException {
*/
boolean delete(Path path, boolean recursive) throws IOException;
+ /**
+ * Move the path to trash.
+ *
+ * @param path the path to move to trash.
+ */
+ boolean moveToTrash(Path path) throws IOException;
Review Comment:
```suggestion
default boolean moveToTrash(Path path) throws IOException {
throw new UnsupportedOperationException();
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org