You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ro...@apache.org on 2022/01/10 06:05:19 UTC

[iotdb] 01/01: [IOTDB-2273] Trigger doc: quotation marks are required on the id

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

rong pushed a commit to branch iotdb-2273
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit 02d0b1c29df70a8f973fd65f797227d2fbea2091
Author: Steve Yurong Su <ro...@apache.org>
AuthorDate: Mon Jan 10 14:04:31 2022 +0800

    [IOTDB-2273] Trigger doc: quotation marks are required on the id
---
 docs/UserGuide/Advanced-Features/Triggers.md    | 10 +++++-----
 docs/zh/UserGuide/Advanced-Features/Triggers.md | 10 +++++-----
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/docs/UserGuide/Advanced-Features/Triggers.md b/docs/UserGuide/Advanced-Features/Triggers.md
index 42af7ad..be24bd7 100644
--- a/docs/UserGuide/Advanced-Features/Triggers.md
+++ b/docs/UserGuide/Advanced-Features/Triggers.md
@@ -170,7 +170,7 @@ Registering a trigger can be carried out as follows:
 4. Use the SQL statement to register the trigger. Assume that the name given to the trigger is `alert-listener-sg1d1s1`.
 
    ```sql
-   CREATE TRIGGER alert-listener-sg1d1s1
+   CREATE TRIGGER `alert-listener-sg1d1s1`
    AFTER INSERT
    ON root.sg1.d1.s1
    AS 'org.apache.iotdb.db.engine.trigger.example.AlertListener'
@@ -236,7 +236,7 @@ DROP TRIGGER <TRIGGER-NAME>
 The following is an example of a `DROP TRIGGER` statement:
 
 ```sql
-DROP TRIGGER alert-listener-sg1d1s1
+DROP TRIGGER `alert-listener-sg1d1s1`
 ```
 
 
@@ -258,7 +258,7 @@ START TRIGGER <TRIGGER-NAME>
 The following is an example of a `START TRIGGER` statement:
 
 ```sql
-START TRIGGER alert-listener-sg1d1s1
+START TRIGGER `alert-listener-sg1d1s1`
 ```
 
 
@@ -284,7 +284,7 @@ STOP TRIGGER <TRIGGER-NAME>
 The following is an example of a `STOP TRIGGER` statement:
 
 ```sql
-STOP TRIGGER alert-listener-sg1d1s1
+STOP TRIGGER `alert-listener-sg1d1s1`
 ```
 
 
@@ -830,7 +830,7 @@ You can try this trigger by following the steps below:
 * Use the `CREATE TRIGGER` statement to register the trigger via cli
 
   ```sql
-  CREATE TRIGGER window-avg-alerter
+  CREATE TRIGGER `window-avg-alerter`
   AFTER INSERT
   ON root.sg1.d1.s1
   AS 'org.apache.iotdb.trigger.TriggerExample'
diff --git a/docs/zh/UserGuide/Advanced-Features/Triggers.md b/docs/zh/UserGuide/Advanced-Features/Triggers.md
index b4074dd..222de1f 100644
--- a/docs/zh/UserGuide/Advanced-Features/Triggers.md
+++ b/docs/zh/UserGuide/Advanced-Features/Triggers.md
@@ -150,7 +150,7 @@ default int[] fire(long[] timestamps, int[] values) throws Exception {
 5. 使用`CREATE TRIGGER`语句注册该触发器
 
    ```sql
-   CREATE TRIGGER alert-listener-sg1d1s1
+   CREATE TRIGGER `alert-listener-sg1d1s1`
    AFTER INSERT
    ON root.sg1.d1.s1
    AS 'org.apache.iotdb.db.engine.trigger.example.AlertListener'
@@ -214,7 +214,7 @@ DROP TRIGGER <TRIGGER-NAME>
 下面是一个`DROP TRIGGER`语句的例子:
 
 ```sql
-DROP TRIGGER alert-listener-sg1d1s1
+DROP TRIGGER `alert-listener-sg1d1s1`
 ```
 
 ### 启动触发器
@@ -232,7 +232,7 @@ START TRIGGER <TRIGGER-NAME>
 下面是一个`START TRIGGER`语句的例子:
 
 ```sql
-START TRIGGER alert-listener-sg1d1s1
+START TRIGGER `alert-listener-sg1d1s1`
 ```
 
 注意,通过`CREATE TRIGGER`语句注册的触发器默认是`STARTED`的。
@@ -252,7 +252,7 @@ STOP TRIGGER <TRIGGER-NAME>
 下面是一个`STOP TRIGGER`语句的例子:
 
 ```sql
-STOP TRIGGER alert-listener-sg1d1s1
+STOP TRIGGER `alert-listener-sg1d1s1`
 ```
 
 ### 查询所有注册的触发器
@@ -763,7 +763,7 @@ public class TriggerExample implements Trigger {
 * 使用`CREATE TRIGGER`语句注册该触发器
 
   ```sql
-  CREATE TRIGGER window-avg-alerter
+  CREATE TRIGGER `window-avg-alerter`
   AFTER INSERT
   ON root.sg1.d1.s1
   AS 'org.apache.iotdb.trigger.TriggerExample'