From 094b8e43b79b25555cd0fe6548e1eb0db2579f94 Mon Sep 17 00:00:00 2001 From: firest Date: Mon, 3 Jul 2023 15:02:46 +0800 Subject: [PATCH] chore: update changes --- changes/ce/fix-11172.en.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 changes/ce/fix-11172.en.md diff --git a/changes/ce/fix-11172.en.md b/changes/ce/fix-11172.en.md new file mode 100644 index 000000000..5e8effabb --- /dev/null +++ b/changes/ce/fix-11172.en.md @@ -0,0 +1,11 @@ +Fix the `payload` will be duplicated in the below situations: +- Use a `foreach` sentence without the `as` sub-expression and select all fields(use the `*` or omitted the `do` sub-expression) + + For example: + + `FOREACH payload.sensors FROM "t/#"` +- Select the `payload` field and all fields + + For example: + + `SELECT payload.sensors, * FROM "t/#"`