You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/07/27 00:44:23 UTC

[GitHub] [doris] morningman opened a new pull request, #11232: [improvement] support show query stmt in show processlist

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

   # Proposed changes
   
   Issue Number: close #xxx
   
   ## Problem Summary:
   
   Same as MySQL: https://dev.mysql.com/doc/refman/8.0/en/show-processlist.html
   The `info` column will show the current running stmt.
   ```
   mysql> show full processlist;
   +------+------+-----------------+-----------------+------+---------+------+-------+-------------------+
   | Id   | User | Host            | Cluster         | Db   | Command | Time | State | Info              |
   +------+------+-----------------+-----------------+------+---------+------+-------+-------------------+
   |    0 | root | 127.0.0.1:48266 | default_cluster |      | Query   |    0 |       |                   |
   |    1 | root | 127.0.0.1:48342 | default_cluster |      | Query   |   15 |       | select sleep(100) |
   +------+------+-----------------+-----------------+------+---------+------+-------+-------------------+
   ```
   And if `full` keyword is missing, the `info` column will only show the first 100 chars of the stmt.
   
   ## Checklist(Required)
   
   1. Type of your changes:
       - [ ] Improvement
       - [ ] Fix
       - [ ] Feature-WIP
       - [ ] Feature
       - [ ] Doc
       - [ ] Refator
       - [ ] Others: 
   2. Does it affect the original behavior: 
       - [ ] Yes
       - [ ] No
       - [ ] I don't know
   3. Has unit tests been added:
       - [ ] Yes
       - [ ] No
       - [ ] No Need
   4. Has document been added or modified:
       - [ ] Yes
       - [ ] No
       - [ ] No Need
   5. Does it need to update dependencies:
       - [ ] Yes
       - [ ] No
   6. Are there any changes that cannot be rolled back:
       - [ ] Yes
       - [ ] No
   
   ## Further comments
   
   If this is a relatively large or complex change, kick off the discussion at [dev@doris.apache.org](mailto:dev@doris.apache.org) by explaining why you chose the solution you did and what alternatives you considered, etc...
   
   


-- 
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-unsubscribe@doris.apache.org

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


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


[GitHub] [doris] stalary commented on a diff in pull request #11232: [improvement] support show query stmt in show processlist

Posted by GitBox <gi...@apache.org>.
stalary commented on code in PR #11232:
URL: https://github.com/apache/doris/pull/11232#discussion_r930534558


##########
fe/fe-core/src/test/java/org/apache/doris/utframe/TestWithFeService.java:
##########
@@ -108,7 +108,7 @@ public final void beforeAll() throws Exception {
     @AfterAll
     public final void afterAll() throws Exception {
         runAfterAll();
-        Catalog.getCurrentCatalog().clear();
+        Env.getCurrentEnv().clear();

Review Comment:
   Need rebase?



-- 
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-unsubscribe@doris.apache.org

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


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


[GitHub] [doris] yiguolei merged pull request #11232: [improvement] support show query stmt in show processlist

Posted by GitBox <gi...@apache.org>.
yiguolei merged PR #11232:
URL: https://github.com/apache/doris/pull/11232


-- 
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-unsubscribe@doris.apache.org

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


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