Available on crate feature
nested_expressions
only.Expand description
Fluent-style API for creating Expr
s
Functions§
- array_
any_ value - returns the first non-null element in the array.
- array_
append - appends an element to the end of an array.
- array_
concat - Concatenates arrays.
- array_
dims - returns an array of the array’s dimensions.
- array_
distance - returns the Euclidean distance between two numeric arrays.
- array_
distinct - returns distinct values from the array after removing duplicates.
- array_
element - extracts the element with the index n from the array.
- array_
empty - returns true for an empty array or false for a non-empty array.
- array_
except - returns an array of the elements that appear in the first array but not in the second.
- array_
has - returns true, if the element appears in the first array, otherwise false.
- array_
has_ all - returns true if each element of the second array appears in the first array; otherwise, it returns false.
- array_
has_ any - returns true if at least one element of the second array appears in the first array; otherwise, it returns false.
- array_
intersect - returns an array of the elements in the intersection of array1 and array2.
- array_
length - returns the length of the array dimension.
- array_
ndims - returns the number of dimensions of the array.
- array_
pop_ back - returns the array without the last element.
- array_
pop_ front - returns the array without the first element.
- array_
position - searches for an element in the array, returns first occurrence.
- array_
positions - searches for an element in the array, returns all occurrences.
- array_
prepend - Prepends an element to the beginning of an array.
- array_
remove - removes the first element from the array equal to the given value.
- array_
remove_ all - removes all elements from the array equal to the given value.
- array_
remove_ n - removes the first
max
elements from the array equal to the given value. - array_
repeat - returns an array containing element
count
times. - array_
replace - replaces the first occurrence of the specified element with another specified element.
- array_
replace_ all - replaces all occurrences of the specified element with another specified element.
- array_
replace_ n - replaces the first
max
occurrences of the specified element with another specified element. - array_
resize - returns an array with the specified size filled with the given value.
- array_
reverse - reverses the order of elements in the array.
- array_
slice - returns a slice of the array.
- array_
sort - returns sorted array.
- array_
to_ string - converts each element to its text representation.
- array_
union - returns an array of the elements in the union of array1 and array2 without duplicates.
- cardinality
- returns the total number of elements in the array or map.
- flatten
- flattens an array of arrays into a single array.
- gen_
series - create a list of values in the range between start and stop, include upper bound
- make_
array - Returns an Arrow array using the specified input expressions.
- map_
extract - Return a list containing the value for a given key or an empty list if the key is not contained in the map.
- map_
keys - Return a list of all keys in the map.
- map_
values - Return a list of all values in the map.
- range
- create a list of values in the range between start and stop
- string_
to_ array - splits a
string
based on adelimiter
and returns an array of parts. Any parts matching the optionalnull_string
will be replaced withNULL