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": {