-
Notifications
You must be signed in to change notification settings - Fork 263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Doc] Add array functions #1907
base: master
Are you sure you want to change the base?
Conversation
ARRAY_RANGE(end) | ||
ARRAY_RANGE(start, end) | ||
ARRAY_RANGE(start, end, step) | ||
ARRAY_RANGE(start_datetime, end_datetime) | ||
ARRAY_RANGE(start_datetime, end_datetime, INTERVAL interval_step UNIT) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
参数需要加尖括号
## Syntax | ||
|
||
```sql | ||
ARRAY_REPEAT(<T>, <n>) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ARRAY_REPEAT(<T>, <n>) | |
ARRAY_REPEAT(<element>, <n>) |
|
||
```sql | ||
ARRAY<T> array_shuffle(ARRAY<T> array1, [INT seed]) | ||
ARRAY<T> shuffle(ARRAY<T> array1, [INT seed]) | ||
ARRAY_SHUFFLE(<array1>, <seed>) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ARRAY_SHUFFLE(<array1>, <seed>) | |
ARRAY_SHUFFLE(<array>, <seed>) |
|
||
```sql | ||
ARRAY_UNION(<array1>, <array2>) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ARRAY_UNION(<array1>, <array2>) | |
ARRAY_UNION(<array> [, <array> ] ) |
| `<array1>` | The array to be merged | | ||
| `<array2>` | The array to be merged | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
写一个 <array>
就可以了
|
||
```sql | ||
ARRAY<T> array_with_constant(n, T) | ||
ARRAY<T> array_repeat(T, n) | ||
ARRAY_WITH_CONSTANT(<n>, <T>) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ARRAY_WITH_CONSTANT(<n>, <T>) | |
ARRAY_WITH_CONSTANT(<n>, <element>) |
| `<array1>` | The array to be merged | | ||
| `<array2>` | The array to be merged | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个说明看起来不太对
| `<arr>` | The array to be judged | | ||
| `<value>` | Elements to be judged | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个说明不太明确
Versions
Languages
Docs Checklist