Przeglądaj źródła

fix(docs): fix typo for unnest (#1925)

* fix(docs): fix typo for unnest

Signed-off-by: Jianxiang Ran <rxan_embedded@163.com>

* fix(docs): fix typo for array_position

Signed-off-by: Jianxiang Ran <rxan_embedded@163.com>

---------

Signed-off-by: Jianxiang Ran <rxan_embedded@163.com>
superxan 1 rok temu
rodzic
commit
4b8e6761fb

+ 6 - 6
docs/en_US/sqls/built-in_functions.md

@@ -180,12 +180,12 @@ Currently, 'zlib', 'gzip', 'flate' and 'zstd' method are supported.
 
 ## Array Functions
 
-| Function   | Example                   | Description                                                                                                                          |
-|------------|---------------------------|--------------------------------------------------------------------------------------------------------------------------------------|
-| array_position | array_postion(array, value) | Return a 0-based index of the first occurrence of val if it is found within array. If val does not exist within array, it returns -1 |
-| element_at | element_at(array, index) | Returns element of array at index val. If val < 0, this function accesses elements from the last to the first                        |
+| Function       | Example                      | Description                                                                                                                          |
+|----------------|------------------------------|--------------------------------------------------------------------------------------------------------------------------------------|
+| array_position | array_position(array, value) | Return a 0-based index of the first occurrence of val if it is found within array. If val does not exist within array, it returns -1 |
+| element_at     | element_at(array, index)     | Returns element of array at index val. If val < 0, this function accesses elements from the last to the first                        |
 | array_contains | array_contains(array, value) | Returns true if array contains the element                                                                                           |
-| array_create | array_create(value1, ......) | Construct an array from literals                                                                                                     |
+| array_create   | array_create(value1, ......) | Construct an array from literals                                                                                                     |
 
 ## Object Functions
 
@@ -321,7 +321,7 @@ Create a stream demo and have below inputs
 Rule to get the unnest values with other columns:
 
 ```text
-SQL: SELECT unnest(x), b FROM demo
+SQL: SELECT unnest(x), c FROM demo
 ___________________________________________________
 {"a":1, "b":2, "c": 5}
 {"a":3, "b":4, "c": 5}

+ 2 - 2
docs/zh_CN/sqls/built-in_functions.md

@@ -182,7 +182,7 @@ eKuiper 具有许多内置函数,可以对数据执行计算。
 
 | 函数             | 示例                           | 说明                                                    |
 |----------------|------------------------------|-------------------------------------------------------|
-| array_position | array_postion(array, value)  | 返回第二个参数在列表参数中的索引下标位置,索引下标从 0 开始,若该元素不存在,则返回 -1        |
+| array_position | array_position(array, value) | 返回第二个参数在列表参数中的索引下标位置,索引下标从 0 开始,若该元素不存在,则返回 -1        |
 | element_at     | element_at(array, index)     | 返回列表参数中在给定索引下的元素,索引下标从 0 开始,若该索引小于 0,则该元素从列表末向列表头进行计数 |
 | array_contains | array_contains(array, value) | 返回给定元素是否存在列表参数中,存在则返回 true,否则返回 false                 |
 | array_create   | array_create(value1, ......) | 将给定的元素参数们创建为一个列表元素                                    |
@@ -320,7 +320,7 @@ ___________________________________________________
 获取 unnest 结果与其他列的规则:
 
 ```text
-SQL: SELECT unnest(x), b FROM demo
+SQL: SELECT unnest(x), c FROM demo
 ___________________________________________________
 {"a":1, "b":2, "c": 5}
 {"a":3, "b":4, "c": 5}