Skip to content

Commit 855064a

Browse files
committed
run doc command
Signed-off-by: jayzhan211 <[email protected]>
1 parent 01fab56 commit 855064a

File tree

2 files changed

+21
-20
lines changed

2 files changed

+21
-20
lines changed

docs/source/user-guide/expressions.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -179,26 +179,26 @@ Unlike to some databases the math functions in Datafusion works the same way as
179179

180180
## Array Expressions
181181

182-
| Function | Notes |
183-
| ----------------------------------------- | -------------------------------------------------------------------------------------------------------------- |
184-
| array_append(array, element) | Appends an element to the end of an array. `array_append([1, 2, 3], 4) -> [1, 2, 3, 4]` |
185-
| array_concat(array[, ..., array_n]) | Concatenates arrays. `array_concat([1, 2, 3], [4, 5, 6]) -> [1, 2, 3, 4, 5, 6]` |
186-
| array_has(array, element) | Returns true if the array contains the element `array_has([1,2,3], 1) -> true` |
187-
| array_has_all(array, sub-array) | Returns true if all elements of sub-array exist in array `array_has_all([1,2,3], [1,3]) -> true` |
188-
| array_has_any(array, sub-array) | Returns true if any elements exist is both array `array_has_any([1,2,3], [1,4]) -> true` |
189-
| array_dims(array) | Returns an array of the array's dimensions. `array_dims([[1, 2, 3], [4, 5, 6]]) -> [2, 3]` |
190-
| array_fill(element, array) | Returns an array filled with copies of the given value. |
191-
| array_length(array, dimension) | Returns the length of the array dimension. `array_length([1, 2, 3, 4, 5]) -> 5` |
192-
| array_ndims(array) | Returns the number of dimensions of the array. `array_ndims([[1, 2, 3], [4, 5, 6]]) -> 2` |
193-
| array_position(array, element) | Searches for an element in the array, returns first occurrence. `array_position([1, 2, 2, 3, 4], 2) -> 2` |
194-
| array_positions(array, element) | Searches for an element in the array, returns all occurrences. `array_positions([1, 2, 2, 3, 4], 2) -> [2, 3]` |
195-
| array_prepend(array, element) | Prepends an element to the beginning of an array. `array_prepend(1, [2, 3, 4]) -> [1, 2, 3, 4]` |
196-
| array_remove(array, element) | Removes all elements equal to the given value from the array. |
197-
| array_replace(array, from, to) | Replaces a specified element with another specified element. |
198-
| array_to_string(array, delimeter) | Converts each element to its text representation. `array_to_string([1, 2, 3, 4], ',') -> 1,2,3,4` |
199-
| cardinality(array) | Returns the total number of elements in the array. `cardinality([[1, 2, 3], [4, 5, 6]]) -> 6` |
200-
| make_array(value1, [value2 [, ...]]) | Returns an Arrow array using the specified input expressions. `make_array(1, 2, 3) -> [1, 2, 3]` |
201-
| trim_array(array, n) | Removes the last n elements from the array. |
182+
| Function | Notes |
183+
| ------------------------------------ | -------------------------------------------------------------------------------------------------------------- |
184+
| array_append(array, element) | Appends an element to the end of an array. `array_append([1, 2, 3], 4) -> [1, 2, 3, 4]` |
185+
| array_concat(array[, ..., array_n]) | Concatenates arrays. `array_concat([1, 2, 3], [4, 5, 6]) -> [1, 2, 3, 4, 5, 6]` |
186+
| array_has(array, element) | Returns true if the array contains the element `array_has([1,2,3], 1) -> true` |
187+
| array_has_all(array, sub-array) | Returns true if all elements of sub-array exist in array `array_has_all([1,2,3], [1,3]) -> true` |
188+
| array_has_any(array, sub-array) | Returns true if any elements exist is both array `array_has_any([1,2,3], [1,4]) -> true` |
189+
| array_dims(array) | Returns an array of the array's dimensions. `array_dims([[1, 2, 3], [4, 5, 6]]) -> [2, 3]` |
190+
| array_fill(element, array) | Returns an array filled with copies of the given value. |
191+
| array_length(array, dimension) | Returns the length of the array dimension. `array_length([1, 2, 3, 4, 5]) -> 5` |
192+
| array_ndims(array) | Returns the number of dimensions of the array. `array_ndims([[1, 2, 3], [4, 5, 6]]) -> 2` |
193+
| array_position(array, element) | Searches for an element in the array, returns first occurrence. `array_position([1, 2, 2, 3, 4], 2) -> 2` |
194+
| array_positions(array, element) | Searches for an element in the array, returns all occurrences. `array_positions([1, 2, 2, 3, 4], 2) -> [2, 3]` |
195+
| array_prepend(array, element) | Prepends an element to the beginning of an array. `array_prepend(1, [2, 3, 4]) -> [1, 2, 3, 4]` |
196+
| array_remove(array, element) | Removes all elements equal to the given value from the array. |
197+
| array_replace(array, from, to) | Replaces a specified element with another specified element. |
198+
| array_to_string(array, delimeter) | Converts each element to its text representation. `array_to_string([1, 2, 3, 4], ',') -> 1,2,3,4` |
199+
| cardinality(array) | Returns the total number of elements in the array. `cardinality([[1, 2, 3], [4, 5, 6]]) -> 6` |
200+
| make_array(value1, [value2 [, ...]]) | Returns an Arrow array using the specified input expressions. `make_array(1, 2, 3) -> [1, 2, 3]` |
201+
| trim_array(array, n) | Removes the last n elements from the array. |
202202

203203
## Regular Expressions
204204

docs/source/user-guide/sql/scalar_functions.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1566,6 +1566,7 @@ array_has_any(array, sub-array)
15661566
Can be a constant, column, or function, and any combination of array operators.
15671567
- **sub-array**: Array expression.
15681568
Can be a constant, column, or function, and any combination of array operators.
1569+
15691570
### `array_dims`
15701571

15711572
Returns an array of the array's dimensions.

0 commit comments

Comments
 (0)