String functions
This section describes the following string functions:
BASE64_DECODE
: Decode a base 64 string into a stringBASE64_TO_HEX
: Converts a base 64 string into a hex stringBYTES_SUBSTRING
: Returns a substring of the input, using the offsets in bytes of the UTF-8 encoded byte representation. Partial characters and invalid UTF-8 code points are removed from the result.CONCAT
: Returns the concatenation of string1, string2, ..., stringN.DATE
: Casts String to DateJOIN_ARRAYS
: Joins any number of arrays by index using a MessageFormat patternLENGTH
: Gets the length of the stringLOWER
: Converts the string to lowercase lettersLPAD
: Pad the input string to the left with a given padding string up until sizeLTRIM
: Returns the given string without leading whitespacesMD5
: Hashes the input using MD5PARSE_DATETIME
: Parses string into a timestamp with time zone using formatREPLACE
: Replaces all instances ofsearch
withreplace
in input. Ifsearch
is empty, insertsreplace
in front of every character and at the end of the input.REVERSE
: Returns a string with the characters in reverse order.RPAD
: Pad the input string to the right with a given padding string up until sizeRTRIM
: Returns the given string without trailing whitespacesSHA1
: Hashes the input using SHA-1SHA256
: Hashes the input using SHA-256SHA3_512
: Hashes the input using SHA3-512SHA512
: Hashes the input using SHA-512SORT_VALUES
: Returns the values sorted in dictionary orderSPLIT
: Returns the given string split by the provided delimiter. Does not remove empty entries.SPLIT_TO_RECORD
: Returns the given string split by the provided delimiter.STRING_FORMAT
: Format any number of inputs into a string using the given formatSTRIP_MARGIN
: For each line remove prefix of control or whitespace characters followed by the given margin charSTRIP_PREFIX
: Remove the given prefix string from the beginning of the stringSTRIP_SUFFIX
: Remove the given suffix string from the end of the stringSTRPOS
: Returns the starting position of the first instance of substring in string. Positions start with 1. If not found, 0 is returned.SUBSTR
: Returns a substring from string of lengthlength
from the starting positionstart
. Positions start with 1. A negative starting position is interpreted as being relative to the end of the string.SUBSTRING
: Returns a substring from string of lengthlength
from the starting positionstart
. Positions start with 1. A negative starting position is interpreted as being relative to the end of the string.TRANSLATE
: Translates the given value using a given dictionaryTRIM
: Returns the given string without leading or trailing whitespacesTRIM_CHARS
: Returns the given string without leading or trailing charactersUPPER
: Converts the string to uppercase lettersUUID_GENERATOR
: Returns UUIDXX_HASH
: Hashes the input using xxHash
Last updated