huangyuansheng opened a new issue #8421:
URL: https://github.com/apache/incubator-doris/issues/8421


   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/incubator-doris/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### Description
   
   It's serious that overwrite the previous dropped object if drop same object 
again.
   caution: when create same object after dropped, if wanna recover it, you 
should rename first
   
   对于多次删除相同对象会导致垃圾桶中的对象被覆盖(只能恢复最近一次删除),个人感觉还是蛮危险的事情。
   注意:对于删除后又新建同名对象,此时想要恢复之前的对象,请先rename!
   
   
   ### Solution
   
   * dropped objects with timestamp in trash, it can be query using like 'show 
dropped'
       * fields: id, type(db or table or partition), owner, name, drop_time
   * recover ddl: recover <type> <name> [ using id ] [ to newName ]  
       * can recover to a new name 
   
   * 删除对象可以带时间戳保留在垃圾箱中,并可以通过类似show dropped命令查看
       * 大致字段:id, type(db or table or partition), owner, name, drop_time
   * 恢复语句可考虑增强:recover <type> <name> [ using id ] [ to newName ]  
       * 支持恢复到新的名称
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to