datafusion.functions.functions

datafusion.functions.functions.abs(*args)
datafusion.functions.functions.acos(*args)
datafusion.functions.functions.acosh(*args)
datafusion.functions.functions.alias(expr, name)

Creates a new Alias Expr

datafusion.functions.functions.approx_distinct(*args, distinct=False)
datafusion.functions.functions.approx_median(*args, distinct=False)
datafusion.functions.functions.approx_percentile_cont(*args, distinct=False)
datafusion.functions.functions.approx_percentile_cont_with_weight(*args, distinct=False)
datafusion.functions.functions.array(*args)
datafusion.functions.functions.array_agg(*args, distinct=False)
datafusion.functions.functions.array_append(*args)
datafusion.functions.functions.array_cat(*args)
datafusion.functions.functions.array_concat(*args)
datafusion.functions.functions.array_dims(*args)
datafusion.functions.functions.array_element(*args)
datafusion.functions.functions.array_extract(*args)
datafusion.functions.functions.array_has(*args)
datafusion.functions.functions.array_has_all(*args)
datafusion.functions.functions.array_has_any(*args)
datafusion.functions.functions.array_indexof(*args)
datafusion.functions.functions.array_join(expr, delim)
datafusion.functions.functions.array_length(*args)
datafusion.functions.functions.array_ndims(*args)
datafusion.functions.functions.array_pop_back(*args)
datafusion.functions.functions.array_pop_front(*args)
datafusion.functions.functions.array_position(*args)
datafusion.functions.functions.array_positions(*args)
datafusion.functions.functions.array_prepend(*args)
datafusion.functions.functions.array_push_back(*args)
datafusion.functions.functions.array_push_front(*args)
datafusion.functions.functions.array_remove(*args)
datafusion.functions.functions.array_remove_all(*args)
datafusion.functions.functions.array_remove_n(*args)
datafusion.functions.functions.array_repeat(*args)
datafusion.functions.functions.array_replace(*args)
datafusion.functions.functions.array_replace_all(*args)
datafusion.functions.functions.array_replace_n(*args)
datafusion.functions.functions.array_slice(*args)
datafusion.functions.functions.array_to_string(expr, delim)
datafusion.functions.functions.arrow_typeof(*args)
datafusion.functions.functions.ascii(*args)

Returns the numeric code of the first character of the argument. In UTF8 encoding, returns the Unicode code point of the character. In other multibyte encodings, the argument must be an ASCII character.

datafusion.functions.functions.asin(*args)
datafusion.functions.functions.asinh(*args)
datafusion.functions.functions.atan(*args)
datafusion.functions.functions.atan2(*args)
datafusion.functions.functions.atanh(*args)
datafusion.functions.functions.avg(*args, distinct=False)
datafusion.functions.functions.bit_and(*args, distinct=False)
datafusion.functions.functions.bit_length(*args)

Returns number of bits in the string (8 times the octet_length).

datafusion.functions.functions.bit_or(*args, distinct=False)
datafusion.functions.functions.bit_xor(*args, distinct=False)
datafusion.functions.functions.bool_and(*args, distinct=False)
datafusion.functions.functions.bool_or(*args, distinct=False)
datafusion.functions.functions.btrim(*args)

Removes the longest string containing only characters in characters (a space by default) from the start and end of string.

datafusion.functions.functions.case(expr)

Create a CASE WHEN statement with literal WHEN expressions for comparison to the base expression.

datafusion.functions.functions.cbrt(*args)
datafusion.functions.functions.ceil(*args)
datafusion.functions.functions.char_length(*args)
datafusion.functions.functions.character_length(*args)

Returns number of characters in the string.

datafusion.functions.functions.chr(*args)

Returns the character with the given code.

datafusion.functions.functions.coalesce(*args)
datafusion.functions.functions.col(name)

Create a column reference Expr

datafusion.functions.functions.concat(*args)

Concatenates the text representations of all the arguments. NULL arguments are ignored.

datafusion.functions.functions.concat_ws(sep, *args)

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.

datafusion.functions.functions.corr(*args, distinct=False)
datafusion.functions.functions.cos(*args)
datafusion.functions.functions.cosh(*args)
datafusion.functions.functions.count(*args, distinct=False)
datafusion.functions.functions.count_star()

Create a COUNT(1) aggregate expression

datafusion.functions.functions.covar(*args, distinct=False)
datafusion.functions.functions.covar_pop(*args, distinct=False)
datafusion.functions.functions.covar_samp(*args, distinct=False)
datafusion.functions.functions.current_date(*args)
datafusion.functions.functions.current_time(*args)
datafusion.functions.functions.date_bin(*args)
datafusion.functions.functions.date_part(*args)
datafusion.functions.functions.date_trunc(*args)
datafusion.functions.functions.datepart(*args)
datafusion.functions.functions.datetrunc(*args)
datafusion.functions.functions.decode(input, encoding)
datafusion.functions.functions.degrees(*args)
datafusion.functions.functions.digest(value, method)

Computes a binary hash of the given data. type is the algorithm to use. Standard algorithms are md5, sha224, sha256, sha384, sha512, blake2s, blake2b, and blake3.

datafusion.functions.functions.encode(input, encoding)
datafusion.functions.functions.exp(*args)
datafusion.functions.functions.factorial(*args)
datafusion.functions.functions.first_value(*args, distinct=False)
datafusion.functions.functions.flatten(*args)
datafusion.functions.functions.floor(*args)
datafusion.functions.functions.from_unixtime(*args)
datafusion.functions.functions.gcd(*args)
datafusion.functions.functions.grouping(*args, distinct=False)
datafusion.functions.functions.in_list(expr, value, negated)
datafusion.functions.functions.initcap(*args)

Converts the first letter of each word to upper case and the rest to lower case. Words are sequences of alphanumeric characters separated by non-alphanumeric characters.

datafusion.functions.functions.isnan(expr)
datafusion.functions.functions.iszero(*args)
datafusion.functions.functions.last_value(*args, distinct=False)
datafusion.functions.functions.lcm(*args)
datafusion.functions.functions.left(*args)

Returns first n characters in the string, or when n is negative, returns all but last |n| characters.

datafusion.functions.functions.length(*args)
datafusion.functions.functions.list_append(*args)
datafusion.functions.functions.list_dims(*args)
datafusion.functions.functions.list_element(*args)
datafusion.functions.functions.list_extract(*args)
datafusion.functions.functions.list_indexof(*args)
datafusion.functions.functions.list_join(expr, delim)
datafusion.functions.functions.list_length(*args)
datafusion.functions.functions.list_ndims(*args)
datafusion.functions.functions.list_position(*args)
datafusion.functions.functions.list_positions(*args)
datafusion.functions.functions.list_prepend(*args)
datafusion.functions.functions.list_push_back(*args)
datafusion.functions.functions.list_push_front(*args)
datafusion.functions.functions.list_remove(*args)
datafusion.functions.functions.list_remove_all(*args)
datafusion.functions.functions.list_remove_n(*args)
datafusion.functions.functions.list_replace(*args)
datafusion.functions.functions.list_replace_all(*args)
datafusion.functions.functions.list_replace_n(*args)
datafusion.functions.functions.list_slice(*args)
datafusion.functions.functions.list_to_string(expr, delim)
datafusion.functions.functions.ln(*args)
datafusion.functions.functions.log(*args)
datafusion.functions.functions.log10(*args)
datafusion.functions.functions.log2(*args)
datafusion.functions.functions.lower(*args)

Converts the string to all lower case

datafusion.functions.functions.lpad(*args)

Extends the string to length length by prepending the characters fill (a space by default). If the string is already longer than length then it is truncated (on the right).

datafusion.functions.functions.ltrim(*args)

Removes the longest string containing only characters in characters (a space by default) from the start of string.

datafusion.functions.functions.make_array(*args)
datafusion.functions.functions.max(*args, distinct=False)
datafusion.functions.functions.md5(*args)

Computes the MD5 hash of the argument, with the result written in hexadecimal.

datafusion.functions.functions.mean(*args, distinct=False)
datafusion.functions.functions.median(*args, distinct=False)
datafusion.functions.functions.min(*args, distinct=False)
datafusion.functions.functions.nanvl(*args)

Returns x if x is not NaN otherwise returns y.

datafusion.functions.functions.now(*args)
datafusion.functions.functions.nullif(expr1, expr2)
datafusion.functions.functions.octet_length(*args)

Returns number of bytes in the string. Since this version of the function accepts type character directly, it will not strip trailing spaces.

datafusion.functions.functions.order_by(expr, asc=None, nulls_first=None)

Creates a new Sort Expr

datafusion.functions.functions.pi(*args)
datafusion.functions.functions.pow(*args)
datafusion.functions.functions.power(*args)
datafusion.functions.functions.radians(*args)
datafusion.functions.functions.random(*args)
datafusion.functions.functions.regexp_match(*args)
datafusion.functions.functions.regexp_replace(*args)

Replaces substring(s) matching a POSIX regular expression

datafusion.functions.functions.regr_avgx(*args, distinct=False)
datafusion.functions.functions.regr_avgy(*args, distinct=False)
datafusion.functions.functions.regr_count(*args, distinct=False)
datafusion.functions.functions.regr_intercept(*args, distinct=False)
datafusion.functions.functions.regr_r2(*args, distinct=False)
datafusion.functions.functions.regr_slope(*args, distinct=False)
datafusion.functions.functions.regr_sxx(*args, distinct=False)
datafusion.functions.functions.regr_sxy(*args, distinct=False)
datafusion.functions.functions.regr_syy(*args, distinct=False)
datafusion.functions.functions.repeat(*args)

Repeats string the specified number of times.

datafusion.functions.functions.replace(*args)

Replaces all occurrences in string of substring from with substring to.

datafusion.functions.functions.reverse(*args)

Reverses the order of the characters in the string.

datafusion.functions.functions.right(*args)

Returns last n characters in the string, or when n is negative, returns all but first |n| characters.

datafusion.functions.functions.round(*args)
datafusion.functions.functions.rpad(*args)

Extends the string to length length by appending the characters fill (a space by default). If the string is already longer than length then it is truncated.

datafusion.functions.functions.rtrim(*args)

Removes the longest string containing only characters in characters (a space by default) from the end of string.

datafusion.functions.functions.sha224(*args)
datafusion.functions.functions.sha256(*args)
datafusion.functions.functions.sha384(*args)
datafusion.functions.functions.sha512(*args)
datafusion.functions.functions.signum(*args)
datafusion.functions.functions.sin(*args)
datafusion.functions.functions.sinh(*args)
datafusion.functions.functions.split_part(*args)

Splits string at occurrences of delimiter and returns the n’th field (counting from one).

datafusion.functions.functions.sqrt(*args)
datafusion.functions.functions.starts_with(*args)

Returns true if string starts with prefix.

datafusion.functions.functions.stddev(*args, distinct=False)
datafusion.functions.functions.stddev_pop(*args, distinct=False)
datafusion.functions.functions.stddev_samp(*args, distinct=False)
datafusion.functions.functions.strpos(*args)

Returns starting index of specified substring within string, or zero if it’s not present. (Same as position(substring in string), but note the reversed argument order.)

datafusion.functions.functions.struct(*args)

r#struct

datafusion.functions.functions.substr(*args)
datafusion.functions.functions.sum(*args, distinct=False)
datafusion.functions.functions.tan(*args)
datafusion.functions.functions.tanh(*args)
datafusion.functions.functions.to_hex(*args)

Converts the number to its equivalent hexadecimal representation.

datafusion.functions.functions.to_timestamp(*args)
datafusion.functions.functions.to_timestamp_micros(*args)
datafusion.functions.functions.to_timestamp_millis(*args)
datafusion.functions.functions.to_timestamp_seconds(*args)
datafusion.functions.functions.translate(*args)

Replaces each character in string that matches a character in the from set with the corresponding character in the to set. If from is longer than to, occurrences of the extra characters in from are deleted.

datafusion.functions.functions.trim(*args)

Removes the longest string containing only characters in characters (a space by default) from the start, end, or both ends (BOTH is the default) of string.

datafusion.functions.functions.trunc(*args)
datafusion.functions.functions.upper(*args)

Converts the string to all upper case.

datafusion.functions.functions.uuid(*args)
datafusion.functions.functions.var(*args, distinct=False)
datafusion.functions.functions.var_pop(*args, distinct=False)
datafusion.functions.functions.var_samp(*args, distinct=False)
datafusion.functions.functions.window(name, args, partition_by=None, order_by=None, window_frame=None, ctx=None)

Creates a new Window function expression