doris icon indicating copy to clipboard operation
doris copied to clipboard

[Enhancement] (recycle bin) Support delete catalog recycle bin

Open Dragonliu2018 opened this issue 11 months ago • 5 comments

Proposed changes

Issue Number: close #31348

Add a new command to support delete db/table/partition in catalog recycle bin instantly.

For example:

  1. Delete the database by id:
    DROP CATALOG RECYCLE BIN WHERE 'DbId' = db_id;
    
  2. Delete the table by id:
    DROP CATALOG RECYCLE BIN WHERE 'TableId' = table_id;
    
  3. Delete the partition by id:
    DROP CATALOG RECYCLE BIN WHERE 'PartitionId' = partition_id;
    

Further comments

If this is a relatively large or complex change, kick off the discussion at [email protected] by explaining why you chose the solution you did and what alternatives you considered, etc...

Dragonliu2018 avatar Mar 06 '24 17:03 Dragonliu2018