From c55a66176cc3ed49fab72527ffc10173de7bb878 Mon Sep 17 00:00:00 2001 From: Jiyong Huang Date: Fri, 6 Dec 2024 08:48:35 +0800 Subject: [PATCH] fix(docs): fix null check Signed-off-by: Jiyong Huang --- docs/en_US/edgex/edgex_rule_engine_command.md | 4 ++-- docs/zh_CN/edgex/edgex_rule_engine_command.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/en_US/edgex/edgex_rule_engine_command.md b/docs/en_US/edgex/edgex_rule_engine_command.md index 789558d5c1..650272a63e 100644 --- a/docs/en_US/edgex/edgex_rule_engine_command.md +++ b/docs/en_US/edgex/edgex_rule_engine_command.md @@ -255,7 +255,7 @@ curl -X POST \ -H 'Content-Type: application/json' \ -d '{ "id": "rule2", - "sql": "SELECT avg(int8) AS avg_int8 FROM demo WHERE int8 != nil GROUP BY TUMBLINGWINDOW(ss, 20) HAVING avg(int8) > 0", + "sql": "SELECT avg(int8) AS avg_int8 FROM demo WHERE isNull(int8) = false GROUP BY TUMBLINGWINDOW(ss, 20) HAVING avg(int8) > 0", "actions": [ { "rest": { @@ -278,7 +278,7 @@ The procedure is the same as the previous step. Use the following configuration ```shell { - "sql": "SELECT avg(int8) AS avg_int8 FROM demo WHERE int8 != nil GROUP BY TUMBLINGWINDOW(ss, 20) HAVING avg(int8) > 0", + "sql": "SELECT avg(int8) AS avg_int8 FROM demo WHERE isNull(int8) = false GROUP BY TUMBLINGWINDOW(ss, 20) HAVING avg(int8) > 0", "actions": [ { "mqtt": { diff --git a/docs/zh_CN/edgex/edgex_rule_engine_command.md b/docs/zh_CN/edgex/edgex_rule_engine_command.md index 2573ff86b4..064fded5c3 100644 --- a/docs/zh_CN/edgex/edgex_rule_engine_command.md +++ b/docs/zh_CN/edgex/edgex_rule_engine_command.md @@ -218,7 +218,7 @@ curl -X POST \ -H 'Content-Type: application/json' \ -d '{ "id": "rule2", - "sql": "SELECT avg(int8) AS avg_int8 FROM demo WHERE int8 != nil GROUP BY TUMBLINGWINDOW(ss, 20) HAVING avg(int8) > 0", + "sql": "SELECT avg(int8) AS avg_int8 FROM demo WHERE isNull(int8) = false GROUP BY TUMBLINGWINDOW(ss, 20) HAVING avg(int8) > 0", "actions": [ { "rest": { @@ -241,7 +241,7 @@ curl -X POST \ ```shell { - "sql": "SELECT avg(int8) AS avg_int8 FROM demo WHERE int8 != nil GROUP BY TUMBLINGWINDOW(ss, 20) HAVING avg(int8) > 0", + "sql": "SELECT avg(int8) AS avg_int8 FROM demo WHERE isNull(int8) = false GROUP BY TUMBLINGWINDOW(ss, 20) HAVING avg(int8) > 0", "actions": [ { "mqtt": {