@@ -179,26 +179,26 @@ Unlike to some databases the math functions in Datafusion works the same way as
179
179
180
180
## Array Expressions
181
181
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. |
202
202
203
203
## Regular Expressions
204
204
0 commit comments