Yulei-Yang opened a new pull request, #17342:
URL: https://github.com/apache/doris/pull/17342

   currently, show proc jobs commamd can only used on a specific database, if a 
user want to see overall data of the whole cluster, he has to look into every 
database and sum them up, it's troublesome.
   now he can achieve it simply by giving a -1 as dbId.
   
   mysql> show proc '/jobs/-1';
   +---------------+---------+---------+----------+-----------+-------+
   | JobType | Pending | Running | Finished | Cancelled | Total |
   +---------------+---------+---------+----------+-----------+-------+
   | load | 0 | 0 | 0 | 2 | 2 |
   | delete | 0 | 0 | 0 | 0 | 0 |
   | rollup | 0 | 0 | 1 | 0 | 1 |
   | schema_change | 0 | 0 | 2 | 0 | 2 |
   | export | 0 | 0 | 0 | 3 | 3 |
   +---------------+---------+---------+----------+-----------+-------+
   
   mysql> show proc '/jobs/-1/rollup';
   
+----------+------------------+---------------------+---------------------+------------------+-----------------+----------+---------------+----------+------+----------+---------+
   | JobId | TableName | CreateTime | FinishTime | BaseIndexName | 
RollupIndexName | RollupId | TransactionId | State | Msg | Progress | Timeout |
   
+----------+------------------+---------------------+---------------------+------------------+-----------------+----------+---------------+----------+------+----------+---------+
   | 17826065 | order_detail | 2023-02-23 04:21:01 | 2023-02-23 04:21:22 | 
order_detail | rp1 | 17826066 | 6009 | FINISHED | | NULL | 2592000 |
   
+----------+------------------+---------------------+---------------------+------------------+-----------------+----------+---------------+----------+------+----------+---------+
   1 row in set (0.01 sec)
   
   


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