Dragonliu2018 opened a new pull request, #35750:
URL: https://github.com/apache/doris/pull/35750

   ## Proposed changes
   
   Issue Number: close #35748 
   
   <!--Describe your changes.-->
   
   When drop a database which is not in catalog recycle bin,  remove all tables 
and partitions in catalog recycle bin with same DbId, not simply reporting 
errors. Such as:
   ```sql
   mysql> show catalog recycle bin;
   
+-----------+------+-------+---------+-------------+---------------------+----------+----------------+
   | Type      | Name | DbId  | TableId | PartitionId | DropTime            | 
DataSize | RemoteDataSize |
   
+-----------+------+-------+---------+-------------+---------------------+----------+----------------+
   | Partition | p30  | 12056 | 12258   | 12257       | 2024-05-31 22:36:45 | 
0.000    | 0.000          |
   
+-----------+------+-------+---------+-------------+---------------------+----------+----------------+
   1 row in set (0.01 sec)
   
   mysql> drop catalog recycle bin where 'dbid' = 12056;
   Query OK, 0 rows affected (0.01 sec)
   
   mysql> show catalog recycle bin;
   Empty set (0.00 sec)
   ```
   
   When drop a table which is not in catalog recycle bin, the treatment is 
similar.


-- 
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