You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ja...@apache.org on 2023/03/09 12:20:26 UTC

[iotdb] branch rel/1.1 updated: add example of kill query in doc

This is an automated email from the ASF dual-hosted git repository.

jackietien pushed a commit to branch rel/1.1
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/rel/1.1 by this push:
     new 0438593baf add example of kill query in doc
0438593baf is described below

commit 0438593baf2ad72677b1af91b009f739160e87fa
Author: Weihao Li <60...@users.noreply.github.com>
AuthorDate: Thu Mar 9 20:20:19 2023 +0800

    add example of kill query in doc
---
 docs/UserGuide/Maintenance-Tools/Maintenance-Command.md    | 7 ++++++-
 docs/zh/UserGuide/Maintenance-Tools/Maintenance-Command.md | 7 ++++++-
 2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/docs/UserGuide/Maintenance-Tools/Maintenance-Command.md b/docs/UserGuide/Maintenance-Tools/Maintenance-Command.md
index 28e1051919..c981788b00 100644
--- a/docs/UserGuide/Maintenance-Tools/Maintenance-Command.md
+++ b/docs/UserGuide/Maintenance-Tools/Maintenance-Command.md
@@ -101,10 +101,15 @@ In addition to waiting for the query to time out passively, IoTDB also supports
 KILL QUERY <queryId>
 ```
 
-You can kill the specified query by specifying `queryId`.
+You can kill the specified query by specifying `queryId`. `queryId` is a string, so you need to put quotes around it.
 
 To get the executing `queryId`,you can use the [show queries](#show-queries) command, which will show the list of all executing queries.
 
+##### Example
+```sql
+kill query '20221205_114444_00003_5'
+```
+
 #### Kill all queries
 
 ```sql
diff --git a/docs/zh/UserGuide/Maintenance-Tools/Maintenance-Command.md b/docs/zh/UserGuide/Maintenance-Tools/Maintenance-Command.md
index 61759ce3f5..f56c9072a2 100644
--- a/docs/zh/UserGuide/Maintenance-Tools/Maintenance-Command.md
+++ b/docs/zh/UserGuide/Maintenance-Tools/Maintenance-Command.md
@@ -99,10 +99,15 @@ session.executeQueryStatement(String sql, long timeout)
 KILL QUERY <queryId>
 ```
 
-通过指定 `queryId` 可以中止指定的查询。
+通过指定 `queryId` 可以中止指定的查询,`queryId`是一个字符串,所以使用时需要添加引号。
 
 为了获取正在执行的查询 id,用户可以使用 [show queries](#show-queries) 命令,该命令将显示所有正在执行的查询列表。
 
+##### 示例
+```sql
+kill query '20221205_114444_00003_5'
+```
+
 #### 终止所有查询
 
 ```sql