Module datafusion::functions::expr_fn

source ·
Expand description

Fluent-style API for creating Exprs

Functions§

  • returns the absolute value of a given number Return $name(arg)
  • returns the arc cosine or inverse cosine of a number Return $name(arg)
  • returns arg_1 cast to the arrow_type given the second argument. This can be used to cast to a specific arrow_type. Return $name(arg)
  • Returns the Arrow type of the input expression. Return $name(arg)
  • Returns the numeric code of the first character of the argument.
  • returns the arc sine or inverse sine of a number Return $name(arg)
  • Returns the number of bits in the string
  • Removes all characters, spaces by default, from both sides of a string
  • the number of characters in the string
  • the number of characters in the string
  • Converts the Unicode code point to a UTF8 character
  • 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 the encoding. encoding can be base64 or hex Return $name(arg)
  • Computes the binary hash of an expression using the specified algorithm. Return $name(arg)
  • encode the input, using the encoding. encoding can be base64 or hex Return $name(arg)
  • converts an integer to RFC3339 timestamp format string
  • Returns the value of the field with the given name from the struct Return $name(arg)
  • returns true if a given number is +NaN or -NaN otherwise returns false Return $name(arg)
  • the number of characters in the string
  • Returns the Levenshtein distance between the two given strings
  • Converts a string to lowercase.
  • 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 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. Return $name(arg)
  • returns value2 if value1 is NULL; otherwise it returns value1 Return $name(arg)
  • Returns value2 if value1 is not NULL; otherwise, it returns value3. Return $name(arg)
  • 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 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 to n times
  • Replaces all occurrences of from with to in the string
  • 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)
  • Splits a string based on a delimiter and picks out the desired field based on the index.
  • Returns true if string starts with prefix.
  • Returns a struct with the given arguments Return $name(arg)
  • returns the tangent of a number Return $name(arg)
  • returns the hyperbolic tangent of a number Return $name(arg)
  • 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
  • Removes all characters, spaces by default, from both sides of a string
  • Converts a string to uppercase.
  • returns uuid v4 as a string value