This is an automated email from the ASF dual-hosted git repository. jackietien pushed a commit to branch CQExampleMaster in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit f166d1ee2194369e0e15a4f161636b2af0acccb7 Author: JackieTien97 <[email protected]> AuthorDate: Wed Mar 22 17:13:55 2023 +0800 Correct CQ example in docs --- docs/UserGuide/Administration-Management/Administration.md | 2 +- docs/zh/UserGuide/Administration-Management/Administration.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/UserGuide/Administration-Management/Administration.md b/docs/UserGuide/Administration-Management/Administration.md index 4b3b7c3c71..2bf7d88242 100644 --- a/docs/UserGuide/Administration-Management/Administration.md +++ b/docs/UserGuide/Administration-Management/Administration.md @@ -391,7 +391,7 @@ At the same time, changes to roles are immediately reflected on all users who ow | DROP_FUNCTION | deregister UDFs; path independent | Eg: `drop function example` [...] | CREATE_TRIGGER | create triggers; path dependent | Eg1: `CREATE TRIGGER <TRIGGER-NAME> BEFORE INSERT ON <FULL-PATH> AS <CLASSNAME>`<br />Eg2: `CREATE TRIGGER <TRIGGER-NAME> AFTER INSERT ON <FULL-PATH> AS <CLASSNAME>` [...] | DROP_TRIGGER | drop triggers; path dependent | Eg: `drop trigger 'alert-listener-sg1d1s1'` [...] -| CREATE_CONTINUOUS_QUERY | create continuous queries; path independent | Eg: `select s1, s1 into t1, t2 from root.sg.d1` [...] +| CREATE_CONTINUOUS_QUERY | create continuous queries; path independent | Eg: `CREATE CONTINUOUS QUERY cq1 RESAMPLE RANGE 40s BEGIN <QUERY-BODY> END` [...] | DROP_CONTINUOUS_QUERY | drop continuous queries; path independent | Eg1: `DROP CONTINUOUS QUERY cq3`<br />Eg2: `DROP CQ cq3` [...] | SHOW_CONTINUOUS_QUERIES | show continuous queries; path independent | Eg1: `SHOW CONTINUOUS QUERIES`<br />Eg2: `SHOW cqs` [...] | UPDATE_TEMPLATE | create and drop schema template; path independent | Eg1: `create schema template t1(s1 int32)`<br />Eg2: `drop schema template t1` [...] diff --git a/docs/zh/UserGuide/Administration-Management/Administration.md b/docs/zh/UserGuide/Administration-Management/Administration.md index 60a1d3d60e..3f1efa9663 100644 --- a/docs/zh/UserGuide/Administration-Management/Administration.md +++ b/docs/zh/UserGuide/Administration-Management/Administration.md @@ -390,7 +390,7 @@ Eg: IoTDB > ALTER USER `tempuser` SET PASSWORD 'newpwd'; | DROP_FUNCTION | 卸载 UDF。路径无关 | Eg: `drop function example` [...] | CREATE_TRIGGER | 创建触发器。路径相关 | Eg1: `CREATE TRIGGER <TRIGGER-NAME> BEFORE INSERT ON <FULL-PATH> AS <CLASSNAME>`<br />Eg2: `CREATE TRIGGER <TRIGGER-NAME> AFTER INSERT ON <FULL-PATH> AS <CLASSNAME>` [...] | DROP_TRIGGER | 卸载触发器。路径相关 | Eg: `drop trigger 'alert-listener-sg1d1s1'` [...] -| CREATE_CONTINUOUS_QUERY | 创建连续查询。路径无关 | Eg: `select s1, s1 into t1, t2 from root.sg.d1` [...] +| CREATE_CONTINUOUS_QUERY | 创建连续查询。路径无关 | Eg: `CREATE CONTINUOUS QUERY cq1 RESAMPLE RANGE 40s BEGIN <QUERY-BODY> END` [...] | DROP_CONTINUOUS_QUERY | 卸载连续查询。路径无关 | Eg1: `DROP CONTINUOUS QUERY cq3`<br />Eg2: `DROP CQ cq3` [...] | SHOW_CONTINUOUS_QUERIES | 展示所有连续查询。路径无关 | Eg1: `SHOW CONTINUOUS QUERIES`<br />Eg2: `SHOW cqs` [...] | UPDATE_TEMPLATE | 创建、删除模板。路径无关。 | Eg1: `create schema template t1(s1 int32)`<br />Eg2: `drop schema template t1` [...]
