[typo](docs)Modify the array function doc (#14592)

This commit is contained in:
zy-kkk
2022-11-25 22:31:05 +08:00
committed by GitHub
parent ef82139a37
commit b9fffe1633
17 changed files with 63 additions and 89 deletions

View File

@ -1,6 +1,6 @@
---
{
"title": "array constructor",
"title": "array",
"language": "en"
}
---

View File

@ -1,6 +1,6 @@
---
{
"title": "ARRAY_AVG Function",
"title": "array_avg",
"language": "en"
}
---
@ -24,11 +24,7 @@ specific language governing permissions and limitations
under the License.
-->
## ARRAY_AVG
### Name
ARRAY_AVG
## array_avg
### description

View File

@ -1,6 +1,6 @@
---
{
"title": "ARRAY_ENUMERATE Function",
"title": "array_enumerate",
"language": "en"
}
---
@ -24,11 +24,7 @@ specific language governing permissions and limitations
under the License.
-->
## ARRAY_ENUMERATE
### Name
ARRAY_ENUMERATE
## array_enumerate
### description

View File

@ -1,6 +1,6 @@
---
{
"title": "ARRAY_MAX Function",
"title": "array_max",
"language": "en"
}
---
@ -24,11 +24,7 @@ specific language governing permissions and limitations
under the License.
-->
## ARRAY_MAX
### Name
ARRAY_MAX
## array_max
### description

View File

@ -1,6 +1,6 @@
---
{
"title": "ARRAY_MIN Function",
"title": "array_min",
"language": "en"
}
---
@ -24,11 +24,7 @@ specific language governing permissions and limitations
under the License.
-->
## ARRAY_MIN
### Name
ARRAY_MIN
## array_min
### description

View File

@ -1,6 +1,6 @@
---
{
"title": "ARRAY_PRODUCT Function",
"title": "array_product",
"language": "en"
}
---
@ -24,11 +24,7 @@ specific language governing permissions and limitations
under the License.
-->
## ARRAY_PRODUCT
### Name
ARRAY_PRODUCT
## array_product
### description

View File

@ -1,6 +1,6 @@
---
{
"title": "size",
"title": "array_size",
"language": "en"
}
---
@ -24,7 +24,7 @@ specific language governing permissions and limitations
under the License.
-->
## size (cardinality)
## array_size (size, cardinality)
### description
@ -32,6 +32,7 @@ under the License.
```
BIGINT size(ARRAY<T> arr)
BIGINT array_size(ARRAY<T> arr)
BIGINT cardinality(ARRAY<T> arr)
```
@ -55,6 +56,15 @@ mysql> select k1,k2,size(k2) from array_test;
| 3 | NULL | NULL |
+------+-----------+------------+
mysql> select k1,k2,array_size(k2) from array_test;
+------+-----------+------------------+
| k1 | k2 | array_size(`k2`) |
+------+-----------+------------------+
| 1 | [1, 2, 3] | 3 |
| 2 | [] | 0 |
| 3 | NULL | NULL |
+------+-----------+------------------+
mysql> select k1,k2,cardinality(k2) from array_test;
+------+-----------+-------------------+
| k1 | k2 | cardinality(`k2`) |
@ -63,8 +73,9 @@ mysql> select k1,k2,cardinality(k2) from array_test;
| 2 | [] | 0 |
| 3 | NULL | NULL |
+------+-----------+-------------------+
```
### keywords
SIZE, CARDINALITY
ARRAY_SIZE, SIZE, CARDINALITY

View File

@ -1,6 +1,6 @@
---
{
"title": "ARRAY_SUM Function",
"title": "array_sum",
"language": "en"
}
---
@ -24,11 +24,7 @@ specific language governing permissions and limitations
under the License.
-->
## ARRAY_SUM
### Name
ARRAY_SUM
## array_sum
### description

View File

@ -243,7 +243,12 @@
"type": "category",
"label": "Array Functions",
"items": [
"sql-manual/sql-functions/array-functions/array",
"sql-manual/sql-functions/array-functions/array_max",
"sql-manual/sql-functions/array-functions/array_min",
"sql-manual/sql-functions/array-functions/array_avg",
"sql-manual/sql-functions/array-functions/array_sum",
"sql-manual/sql-functions/array-functions/array_size",
"sql-manual/sql-functions/array-functions/array_remove",
"sql-manual/sql-functions/array-functions/array_slice",
"sql-manual/sql-functions/array-functions/array_sort",
@ -252,22 +257,18 @@
"sql-manual/sql-functions/array-functions/array_except",
"sql-manual/sql-functions/array-functions/array_product",
"sql-manual/sql-functions/array-functions/array_intersect",
"sql-manual/sql-functions/array-functions/arrays_overlap",
"sql-manual/sql-functions/array-functions/array_min",
"sql-manual/sql-functions/array-functions/countequal",
"sql-manual/sql-functions/array-functions/element_at",
"sql-manual/sql-functions/array-functions/array_avg",
"sql-manual/sql-functions/array-functions/array_range",
"sql-manual/sql-functions/array-functions/size",
"sql-manual/sql-functions/array-functions/array_distinct",
"sql-manual/sql-functions/array-functions/array_difference",
"sql-manual/sql-functions/array-functions/array_union",
"sql-manual/sql-functions/array-functions/array_sum",
"sql-manual/sql-functions/array-functions/array_join",
"sql-manual/sql-functions/array-functions/array_with_constant",
"sql-manual/sql-functions/array-functions/array_enumerate",
"sql-manual/sql-functions/array-functions/array_popback",
"sql-manual/sql-functions/array-functions/array_compact"
"sql-manual/sql-functions/array-functions/array_compact",
"sql-manual/sql-functions/array-functions/arrays_overlap",
"sql-manual/sql-functions/array-functions/countequal",
"sql-manual/sql-functions/array-functions/element_at"
]
},
{

View File

@ -1,6 +1,6 @@
---
{
"title": "array构造函数",
"title": "array",
"language": "zh-CN"
}
---

View File

@ -1,6 +1,6 @@
---
{
"title": "ARRAY_AVG 函数",
"title": "array_avg",
"language": "zh-CN"
}
---
@ -24,11 +24,7 @@ specific language governing permissions and limitations
under the License.
-->
## ARRAY_AVG
### Name
ARRAY_AVG
## array_avg
### description

View File

@ -1,6 +1,6 @@
---
{
"title": "ARRAY_ENUMERATE 函数",
"title": "array_enumerate",
"language": "zh-CN"
}
---
@ -24,11 +24,7 @@ specific language governing permissions and limitations
under the License.
-->
## ARRAY_ENUMERATE
### Name
ARRAY_ENUMERATE
## array_enumerate
### description

View File

@ -1,6 +1,6 @@
---
{
"title": "ARRAY_MAX 函数",
"title": "array_max",
"language": "zh-CN"
}
---
@ -24,11 +24,7 @@ specific language governing permissions and limitations
under the License.
-->
## ARRAY_MAX
### Name
ARRAY_MAX
## array_max
### description

View File

@ -1,6 +1,6 @@
---
{
"title": "ARRAY_MIN 函数",
"title": "array_min",
"language": "zh-CN"
}
---
@ -24,11 +24,7 @@ specific language governing permissions and limitations
under the License.
-->
## ARRAY_MIN
### Name
ARRAY_MIN
## array_min
### description

View File

@ -1,6 +1,6 @@
---
{
"title": "ARRAY_PRODUCT 函数",
"title": "array_product",
"language": "zh-CN"
}
---
@ -24,11 +24,7 @@ specific language governing permissions and limitations
under the License.
-->
## ARRAY_PRODUCT
### Name
ARRAY_PRODUCT
## array_product
### description

View File

@ -1,6 +1,6 @@
---
{
"title": "size",
"title": "array_size",
"language": "zh-CN"
}
---
@ -24,14 +24,15 @@ specific language governing permissions and limitations
under the License.
-->
## size (cardinality)
## array_size (size, cardinality)
### description
#### Syntax
```
BIGINT size(ARRAY<T> arr)
BIGINT size(ARRAY<T> arr)
BIGINT array_size(ARRAY<T> arr)
BIGINT cardinality(ARRAY<T> arr)
```
@ -55,6 +56,15 @@ mysql> select k1,k2,size(k2) from array_test;
| 3 | NULL | NULL |
+------+-----------+------------+
mysql> select k1,k2,array_size(k2) from array_test;
+------+-----------+------------------+
| k1 | k2 | array_size(`k2`) |
+------+-----------+------------------+
| 1 | [1, 2, 3] | 3 |
| 2 | [] | 0 |
| 3 | NULL | NULL |
+------+-----------+------------------+
mysql> select k1,k2,cardinality(k2) from array_test;
+------+-----------+-------------------+
| k1 | k2 | cardinality(`k2`) |
@ -67,4 +77,4 @@ mysql> select k1,k2,cardinality(k2) from array_test;
### keywords
SIZE, CARDINALITY
ARRAY_SIZE, SIZE, CARDINALITY

View File

@ -1,6 +1,6 @@
---
{
"title": "ARRAY_SUM 函数",
"title": "array_sum",
"language": "zh-CN"
}
---
@ -24,11 +24,7 @@ specific language governing permissions and limitations
under the License.
-->
## ARRAY_SUM
### Name
ARRAY_SUM
## array_sum
### description