Module datafusion::functions::expr_fn
source · Expand description
Fluent-style API for creating Expr
s
Functions§
- returns the absolute value of a given number
- returns the arc cosine or inverse cosine of a number
- returns inverse hyperbolic cosine
- returns value1 cast to the
arrow_type
given the second argument. This can be used to cast to a specificarrow_type
. - Returns the Arrow type of the input expression.
- Returns the numeric code of the first character of the argument.
- returns the arc sine or inverse sine of a number
- returns inverse hyperbolic sine
- returns inverse tangent
- returns inverse tangent of a division given in the argument
- returns inverse hyperbolic tangent
- Returns the number of bits in the
string
- Removes all characters, spaces by default, from both sides of a string
- cube root of a number
- nearest integer greater than or equal to argument
- the number of characters in the
string
- the number of characters in the
string
- Converts the Unicode code point to a UTF8 character
- Returns
coalesce(args...)
, which evaluates to the value of the first expr which is not NULL - Concatenates the text representations of all the arguments. NULL arguments are ignored
- Concatenates all but the first argument, with separators. The first argument is used as the separator string, and should not be NULL. Other NULL arguments are ignored.
- cosine
- hyperbolic cosine
- cotangent of a number
- returns current UTC date as a Date32 value
- returns current UTC time as a Time64 value
- coerces an arbitrary timestamp to the start of the nearest specified interval
- extracts a subfield from the date
- truncates the date to a specified level of precision
- decode the
input
, using theencoding
. encoding can be base64 or hex Return $name(arg) - converts radians to degrees
- Computes the binary hash of an expression using the specified algorithm. Return $name(arg)
- encode the
input
, using theencoding
. encoding can be base64 or hex Return $name(arg) - Returns true if the
string
ends with thesuffix
, false otherwise. - exponential
- factorial
- Returns a value in the range of 1 to N if the string str is in the string list strlist consisting of N substrings
- nearest integer less than or equal to argument
- converts an integer to RFC3339 timestamp format string
- greatest common divisor
- Returns the value of the field with the given name from the struct
- Converts the first letter of each word in
string
in uppercase and the remaining characters in lowercase - finds the position from where the
substring
matches thestring
- returns true if a given number is +NaN or -NaN otherwise returns false
- returns true if a given number is +0.0 or -0.0 otherwise returns false
- least common multiple
- returns the first
n
characters in thestring
- the number of characters in the
string
- Returns the Levenshtein distance between the two given strings
- natural logarithm (base e) of a number
- logarithm of a number for a particular
base
- base 2 logarithm of a number
- base 10 logarithm of a number
- Converts a string to lowercase.
- fill up a string to the length by prepending the characters
- Removes all characters, spaces by default, from the beginning of a string
- make a date from year, month and day component parts
- Computes an MD5 128-bit checksum for a string expression. Return $name(arg)
- Returns a struct with the given names and arguments pairs
- returns x if x is not NaN otherwise returns y
- returns the current timestamp in nanoseconds, using the same value for all instances of now() in same statement
- returns NULL if value1 equals value2; otherwise it returns value1. This can be used to perform the inverse operation of the COALESCE expression
- Returns value2 if value1 is NULL; otherwise it returns value1
- Returns value2 if value1 is not NULL; otherwise, it returns value3.
- returns the number of bytes of a string
- replace the substring of string that starts at the start’th character and extends for count characters with new substring
- Returns an approximate value of π
- finds the position from where the
substring
matches thestring
base
raised to the power ofexponent
- converts degrees to radians
- Returns a random value in the range 0.0 <= x < 1.0
- Returns true if a has at least one match in a string,false otherwise. Return $name(arg)
- returns a list of regular expression matches in a string. Return $name(arg)
- Replaces substrings in a string that match Return $name(arg)
- Repeats the
string
ton
times - Replaces all occurrences of
from
withto
in thestring
- reverses the
string
- returns the last
n
characters in thestring
- round to nearest integer
- fill up a string to the length by appending the characters
- Removes all characters, spaces by default, from the end of a string
- Computes the SHA-224 hash of a binary string. Return $name(arg)
- Computes the SHA-256 hash of a binary string. Return $name(arg)
- Computes the SHA-384 hash of a binary string. Return $name(arg)
- Computes the SHA-512 hash of a binary string. Return $name(arg)
- sign of the argument (-1, 0, +1)
- sine
- hyperbolic sine
- Splits a string based on a delimiter and picks out the desired field based on the index.
- square root of a number
- Returns true if string starts with prefix.
- finds the position from where the
substring
matches thestring
- Returns a struct with the given arguments
- substring from the
position
to the end - Returns the substring from str before count occurrences of the delimiter
- substring from the
position
withlength
characters - returns the tangent of a number
- returns the hyperbolic tangent of a number
- Returns a string representation of a date, time, timestamp or duration based on a Chrono pattern.
- Converts an integer to a hexadecimal string.
- converts a string and optional formats to a
Timestamp(Nanoseconds, None)
- converts a string and optional formats to a
Timestamp(Microseconds, None)
- converts a string and optional formats to a
Timestamp(Milliseconds, None)
- converts a string and optional formats to a
Timestamp(Nanoseconds, None)
- converts a string and optional formats to a
Timestamp(Seconds, None)
- converts a string and optional formats to a Unixtime
- replaces the characters in
from
with the counterpart into
- Removes all characters, spaces by default, from both sides of a string
- truncate toward zero, with optional precision
- Converts a string to uppercase.
- returns uuid v4 as a string value