Chalk SDK Reference

This reference documents the complete Chalk Python SDK for building and managing feature pipelines.

Returns the absolute value of a number.
Overloads
Calculates the inverse cosine in radians.
Parameters
arg0:
double
Calculates the inverse sine in radians.
Parameters
arg0:
double
Calculates the arctangent of a number in radians.
Parameters
arg0:
double
Calculates the arctangent of y/x in radians, handling quadrant correctly.
Parameters
arg0:
double
arg1:
double
Either:
  • Rounds a number using banker's rounding (round half to even).
  • Rounds a number to specified decimal places using banker's rounding (round half to even).
Either:
  • Calculates the cube root of a number.
  • Calculates the cube root of an integer.
Overloads
Returns the smallest integer greater than or equal to the given number.
Returns the smallest integer greater than or equal to the given number.
Either:
  • Constrains a value between a minimum and maximum range.
  • Constrains an integer value between a minimum and maximum range.
Calculates the cosine of an angle in radians.
Parameters
arg0:
double
Calculates the hyperbolic cosine of a number.
Parameters
arg0:
double
Converts radians to degrees.
Parameters
arg0:
double
Returns the mathematical constant e (Euler's number).
Parameters
None
Calculates e raised to the power of a number.
Parameters
arg0:
double
Returns the largest integer less than or equal to the given number.
Converts a string representation of a number in a given base to an integer.
Parameters
arg0:
large_string
arg1:
int64
Checks if a floating-point number is finite (not NaN or infinite).
Parameters
arg0:
double
Checks if a floating-point number is infinite.
Parameters
arg0:
double
Checks if a floating-point number is NaN (Not a Number).
Parameters
arg0:
double
Calculates the natural logarithm of a number.
Parameters
arg0:
double
Calculates the natural logarithm of a number.
Parameters
arg0:
double
Calculates the base-10 logarithm of a number.
Parameters
arg0:
double
Calculates the base-2 logarithm of a number.
Parameters
arg0:
double
Returns a floating point NaN (Not a Number) value.
Parameters
None
Returns the negative value of a number.
Returns the mathematical constant π (pi).
Parameters
None
Raises a number to the power of another number.
Parameters
arg0:
double
arg1:
double
Raises the first number to the power of the second number.
Parameters
arg0:
double
arg1:
double
Converts degrees to radians.
Parameters
arg0:
double
Either:
  • Rounds a floating point number to the nearest integer.
  • Rounds a floating point number to the specified number of decimal places.
Either:
  • Returns the sign of a number (-1, 0, or 1).
  • Returns the sign of an integer (-1, 0, or 1).
Overloads
Calculates the sine of an angle in radians.
Parameters
arg0:
double
Calculates the square root of a number.
Parameters
arg0:
double
Calculates the tangent of an angle in radians.
Parameters
arg0:
double
Calculates the hyperbolic tangent of a number.
Parameters
arg0:
double
Converts an integer to its string representation in the specified base.
Parameters
arg0:
int64
arg1:
int64
Truncates a floating-point number to remove the decimal part.
Parameters
arg0:
double
Either:
  • Calculates the modulo (remainder) of two integers.
  • Calculates the modulo (remainder) of two floating-point numbers.
Either:
  • basic binary * operation
  • num * duration multiplication
basic binary ** operation
Parameters
arg0:
double
arg1:
double
Either:
  • number + number addition
  • time + duration addition
  • string or binary concatenation
  • interval + interval addition
  • timestamp + interval addition
  • interval + timestamp addition
Either:
  • time - duration subtraction
  • basic binary - operation
  • date(time) subtraction
  • Returns the negative value of a number.
  • interval - interval subtraction
  • timestamp - interval subtraction
Either:
  • basic binary float / operation
  • duration / num division
Checks if a value is between two bounds (inclusive).
Parameters
arg0:
$T_ord
arg1:
$T_ord
arg2:
$T_ord
Checks if two values are distinct, treating NULL values as different from non-NULL values.
Parameters
arg0:
$T
arg1:
$T
Either:
  • gt
  • Compares if the first value is greater than the second.
Either:
  • gte
  • Compares if the first value is greater than or equal to the second.
Either:
  • lt
  • Compares if the first value is less than the second.
Either:
  • lte
  • Compares if the first value is less than or equal to the second.
basic binary != operation
Parameters
arg0:
$T
arg1:
$T
basic binary < operation
Parameters
arg0:
$T_ord
arg1:
$T_ord
basic binary <= operation
Parameters
arg0:
$T_ord
arg1:
$T_ord
basic binary == operation
Parameters
arg0:
$T
arg1:
$T
basic binary > operation
Parameters
arg0:
$T_ord
arg1:
$T_ord
basic binary >= operation
Parameters
arg0:
$T_ord
arg1:
$T_ord
Performs bitwise AND operation on two integer values.
Returns the arithmetic right shift operation on x in 2’s complement representation. shift must not be negative.
Parameters
arg0:
int64
arg1:
int64
Returns the logical right shift operation on x (treated as bits-bit integer) shifted by shift. shift must not be negative.
Parameters
arg0:
int64
arg1:
int64
arg2:
int64
Performs bitwise NOT operation (complement) on an integer value.
Performs bitwise OR operation on two integer values.
Returns the left shift operation on x (treated as bits-bit integer) shifted by shift. shift must not be negative.
Parameters
arg0:
int64
arg1:
int64
arg2:
int64
Performs bitwise XOR operation on two integer values.
boolean & operation
Parameters
arg0:
bool
arg1:
bool
boolean | operation
Parameters
arg0:
bool
arg1:
bool
boolean ~ operation
Parameters
arg0:
bool
Calculates the average of numeric values in an array.
Creates an array from a variable number of arguments.
Parameters
arg0:
$T...
Checks if a list contains a specific element.
Parameters
arg0:
large_list<item: $V>
arg1:
$V
Calculates the cumulative sum of numeric values in an array.
Returns an array with duplicate elements removed, preserving order.
Returns an array containing only the duplicate elements from the input array.
Returns elements from the first array that are not present in the second array.
Filters an array using a callback function predicate.
Parameters
arg0:
large_list<item: $T>
arg1:
($T) => bool
Returns a map of elements to their frequency counts in an array.
Parameters
arg0:
large_list<item: $T>
Checks if an array contains duplicate elements.
Returns the 1-based position of the first occurrence of an element in an array.
Returns the intersection of two arrays (elements present in both arrays).
Either:
  • Joins elements of an array into a string using a separator.
  • Joins elements of a large array into a string using a separator.
Returns the number of elements in a list.
Returns the maximum element in an array.
Calculates the median value of numeric elements in an array.
Returns the minimum element in an array.
Returns the 1-based position of the first occurrence of an element in an array.
Applies a reduce function to each element in an array and returns the accumulated value.
Parameters
arg0:
large_list<item: $T>
arg1:
$U
arg2:
($U, $T) => $U
arg3:
($U) => $V
Removes all occurrences of a specified element from an array.
Either:
  • Sorts an array in ascending order.
  • Sorts an array using a key extraction function.
Sorts an array in descending order.
Calculates the standard deviation of numeric values in an array.
Calculates the sum of numeric values in an array.
Either:
  • Joins elements of an array into a string using a separator.
  • Joins elements of a large array into a string using a separator.
Applies a transformation function to each element in an array and returns a new array.
Parameters
arg0:
large_list<item: $T>
arg1:
($T) => $U
Returns an array with duplicate elements removed, preserving order.
Creates an array from a variable number of arguments.
Parameters
arg0:
$T...
Checks if two arrays have any elements in common.
Returns a list of the distinct elements of the common elements
Returns the number of elements in a list.
Checks if a list contains a specific element.
Parameters
arg0:
large_list<item: $V>
arg1:
$V
Either:
  • Returns the element at the specified index in a list.
  • Retrieves the value associated with a key from a map.
Returns the first element in an array that matches the given predicate function.
Returns the 1-based index of the first element in an array that matches the given predicate function.
Flattens a nested array by one level, combining all sub-arrays into a single array.
Returns the maximum value from a list of integer values.
Parameters
arg0:
$T_ord
arg1:
$T_ord...
Returns the minimum value from a list of float values.
Parameters
arg0:
$T_ord
arg1:
$T_ord...
Calculates the average of numeric values in an array.
Checks if a list contains a specific element.
Parameters
arg0:
large_list<item: $V>
arg1:
$V
Returns the number of elements in a list.
Returns an array with duplicate elements removed, preserving order.
Checks if a list contains a specific element.
Parameters
arg0:
large_list<item: $V>
arg1:
$V
Checks if two arrays have any elements in common.
Returns the intersection of two arrays (elements present in both arrays).
Returns the maximum element in an array.
Calculates the median value of numeric elements in an array.
Returns the minimum element in an array.
Either:
  • Returns the most frequently occurring element in an array.
  • Returns the most frequently occurring element in an array with mode selection option.
Creates an array from a variable number of arguments.
Parameters
arg0:
$T...
Returns the 1-based position of the first occurrence of an element in an array.
Either:
  • Sorts an array in ascending order.
  • Sorts an array using a key extraction function.
Calculates the standard deviation of numeric values in an array.
Calculates the sum of numeric values in an array.
Returns an array with duplicate elements removed, preserving order.
Creates an array from a variable number of arguments.
Parameters
arg0:
$T...
Returns the element at the specified Python-style index in a list.
Removes all null values from an array.
Randomly shuffles the elements of an array.
Either:
  • Returns a slice of a list starting at the given position for the specified length.
  • Returns a substring starting at the specified position with the given length.
Applies a transformation function to each element in an array and returns a new array.
Combines two lists element-wise into a list of paired structures.
Parameters
arg0:
large_list<item: $T>
arg1:
large_list<item: $U>
Combines two lists element-wise using a callback function to transform paired elements.
Parameters
arg0:
large_list<item: $T>
arg1:
large_list<item: $U>
arg2:
($T, $U) => $R
Finds all matches of a regular expression pattern in a string and returns them as a list.
Parameters
arg0:
large_string
arg1:
large_string
Converts an integer to its corresponding ASCII character.
Parameters
arg0:
int64
Returns the Unicode code point of the only character of the string.
Either:
  • Concatenates two or more strings together.
  • Concatenates two or more lists together.
Checks if a string ends with a specified suffix.
Parameters
arg0:
large_string
arg1:
large_string
Decodes UTF-8 encoded binary data into a string.
Parameters
arg0:
large_binary
Returns the Hamming distance of string1 and string2, i.e. the number of positions at which the corresponding characters are different. Note that the two strings must have the same length.
Calculates the Jaccard similarity coefficient between two strings based on character sets.
Parameters
arg0:
large_string
arg1:
large_string
Calculates the Jaro-Winkler distance between two strings.
Parameters
arg0:
large_string
arg1:
large_string
arg2:
double
Either:
  • Returns the length of a string in characters.
  • Returns the number of elements in a list.
Calculates the Levenshtein distance between two strings.
Parameters
arg0:
large_string
arg1:
large_string
Checks if a string matches a pattern using SQL LIKE syntax with wildcards.
Parameters
arg0:
large_string
arg1:
large_string
Calculates the longest common subsequence between two strings.
Parameters
arg0:
large_string
arg1:
large_string
Converts a string to lowercase.
Parameters
arg0:
large_string
Pads a string with a specified padding string on the left to reach a target length.
Parameters
arg0:
large_string
arg1:
int64
arg2:
large_string
Either:
  • Removes whitespace from the left end of a string.
  • Removes specified characters from the left end of a string.
Calculates the partial ratio similarity between two strings using fuzzy matching.
Parameters
arg0:
large_string
arg1:
large_string
Either:
  • Returns the first substring matched by the regular expression pattern in string.
  • Returns the first substring matched by the regular expression pattern in string and returns the capturing group number group.
Either:
  • Returns the substring(s) matched by the regular expression pattern in string.
  • Returns the substring(s) matched by the regular expression pattern in string and returns the capturing group number group.
Checks if a string matches a regular expression pattern.
Parameters
arg0:
large_string
arg1:
large_string
Checks if a string matches a regular expression pattern.
Parameters
arg0:
large_string
arg1:
large_string
Either:
  • Replaces all matches of a regular expression pattern with a replacement string.
  • Removes all matches of a regular expression pattern from a string.
Splits a string by a regex pattern into a list of strings.
Parameters
arg0:
large_string
arg1:
large_string
Replaces all occurrences of a substring with another string.
Parameters
arg0:
large_string
arg1:
large_string
arg2:
large_string
Reverses the characters in a string.
Pads a string with a specified padding string on the right to reach a target length.
Parameters
arg0:
large_string
arg1:
int64
arg2:
large_string
Either:
  • Removes whitespace from the right end of a string.
  • Removes specified characters from the right end of a string.
Computes the similarity ratio between two strings using sequence matching.
Parameters
arg0:
large_string
arg1:
large_string
Either:
  • Splits a string by a delimiter into a list of strings.
  • Splits a string by a delimiter with a maximum number of splits.
Splits a string by delimiter and returns the part at the specified index (1-based).
Parameters
arg0:
large_string
arg1:
large_string
arg2:
int64
Checks if a string starts with a specified prefix.
Parameters
arg0:
large_string
arg1:
large_string
Decodes a Base64-encoded string back into its original binary form. This function is capable of handling both fully padded and non-padded Base64 encoded strings. Partially padded Base64 strings are not supported and will result in a “UserError” status being returned.
Parameters
arg0:
large_string
Decodes binary data from the hex encoded string.
Parameters
arg0:
large_string
Encodes string into a UTF-8 varbinary representation.
Parameters
arg0:
large_string
Returns the position of the first occurrence of a substring within a string.
Parameters
arg0:
large_string
arg1:
large_string
Returns the position of the last occurrence of a substring within a string.
Parameters
arg0:
large_string
arg1:
large_string
Either:
  • Returns a substring starting at the specified position.
  • Returns a substring starting at the specified position with the given length.
Encodes a string to UTF-8 binary data.
Parameters
arg0:
large_string
Calculates the token set ratio similarity between two strings using fuzzy matching.
Parameters
arg0:
large_string
arg1:
large_string
Calculates the token sort ratio similarity between two strings using fuzzy matching.
Parameters
arg0:
large_string
arg1:
large_string
Returns the last N characters of the input string up to at most the length of string.
Either:
  • Removes whitespace from both ends of a string.
  • Removes specified characters from both ends of a string.
Normalizes Unicode characters to their closest ASCII equivalents with whitespace normalization.
Parameters
arg0:
large_string
Converts Unicode characters to their closest ASCII equivalents.
Parameters
arg0:
large_string
Converts a string to uppercase.
Parameters
arg0:
large_string
Returns the stem of a word using stemming algorithms.
Parameters
arg0:
large_string
Splits a string by delimiter and returns the part at the specified zero-based index.
Parameters
arg0:
large_string
arg1:
large_string
arg2:
int64
Returns the current date.
Parameters
None
date + duration addition
Truncates a timestamp to the specified time unit (e.g., day, month, year).
Parameters
arg0:
large_string
arg1:
timestamp[us, tz=UTC]
Extracts the day of the month from a timestamp.
Extracts the day of the week from a timestamp.
Extracts the day of the month from a timestamp.
Formats a datetime using a specified format string.
Parameters
arg0:
timestamp[us, tz=UTC]
arg1:
large_string
Parses an ISO 8601 timestamp string into a datetime object.
Parameters
arg0:
large_string
Converts Unix timestamp (seconds since epoch) to a timestamp.
Parameters
arg0:
double
Either:
  • Returns the UNIX timestamp unixtime as a timestamp with time zone using hours and minutes for the time zone offset.
  • Returns the UNIX timestamp unixtime as a timestamp with time zone.
Extracts the hour from a timestamp.
Parameters
arg0:
timestamp[us, tz=UTC]
Returns True if the given timestamp is a federal holiday.
Returns the last day of the month for a given date.
Parameters
arg0:
timestamp[us, tz=UTC]
Extracts the millisecond from a timestamp.
Parameters
arg0:
timestamp[us, tz=UTC]
Extracts the minute from a timestamp.
Parameters
arg0:
timestamp[us, tz=UTC]
Extracts the month from a timestamp.
Converts an ISO 8601 string into a datetime.
Parameters
arg0:
large_string
arg1:
large_string
Extracts the quarter of the year from a timestamp.
Parameters
arg0:
timestamp[us, tz=UTC]
Extracts the second from a timestamp.
Parameters
arg0:
timestamp[us, tz=UTC]
Converts a datetime to an ISO 8601 string format.
Parameters
arg0:
timestamp[us, tz=UTC]
Converts a duration to microseconds.
Parameters
arg0:
duration[us]
Converts a duration to milliseconds.
Parameters
arg0:
duration[us]
Converts a timestamp to Unix timestamp (seconds since epoch).
Parameters
arg0:
timestamp[us, tz=UTC]
Returns the length of the input duration in seconds.
Parameters
arg0:
duration[us]
Extracts the week of the year from a timestamp.
Extracts the week of the year from a timestamp.
Extracts the year from a timestamp.
Extracts the year of the ISO week from a date.
Extracts the year of the ISO week from a date.
Overloads
Checks if a map contains any keys that match a given condition.
Parameters
arg0:
map<$K, $V>
arg1:
($k) => bool
Either:
  • Retrieves the value associated with a key from a map.
  • Retrieves the value associated with a string key from a map with automatic key type casting.
Checks if a map contains any keys that match a given condition.
Parameters
arg0:
map<$K, $V>
arg1:
$K
Returns the keys of a map ordered by their top N highest values.
Parameters
arg0:
map<$K, $V>
arg1:
int64
Compute the Beta cdf with given a, b parameters: P(N < value; a, b). The a, b parameters must be positive real numbers and value must be a real value (all of type DOUBLE). The value must lie on the interval [0, 1].
Parameters
arg0:
double
arg1:
double
arg2:
double
Compute the Binomial cdf with given numberOfTrials and successProbability (for a single trial): P(N < value). The successProbability must be real value in [0, 1], numberOfTrials and value must be positive integers with numberOfTrials greater or equal to value.
Parameters
arg0:
int64
arg1:
double
arg2:
int64
Compute the Cauchy cdf with given parameters median and scale (gamma): P(N; median, scale). The scale parameter must be a positive double. The value parameter must be a double on the interval [0, 1].
Parameters
arg0:
double
arg1:
double
arg2:
double
Compute the Chi-square cdf with given df (degrees of freedom) parameter: P(N < value; df). The df parameter must be a positive real number, and value must be a non-negative real value (both of type DOUBLE).
Parameters
arg0:
double
arg1:
double
Compute the F cdf with given df1 (numerator degrees of freedom) and df2 (denominator degrees of freedom) parameters: P(N < value; df1, df2). The numerator and denominator df parameters must be positive real numbers. The value must be a non-negative real number.
Parameters
arg0:
double
arg1:
double
arg2:
double
Compute the Gamma cdf with given shape and scale parameters: P(N < value; shape, scale). The shape and scale parameters must be positive real numbers. The value must be a non-negative real number.
Parameters
arg0:
double
arg1:
double
arg2:
double
Compute the inverse of the Beta cdf with given a, b parameters for the cumulative probability (p): P(N < n). The a, b parameters must be positive double values. The probability p must lie on the interval [0, 1].
Parameters
arg0:
double
arg1:
double
arg2:
double
Compute the inverse of the Binomial cdf with given numberOfTrials and successProbability (of a single trial) the cumulative probability (p): P(N <= n). The successProbability and p must be real values in [0, 1] and the numberOfTrials must be a positive integer.
Parameters
arg0:
int64
arg1:
double
arg2:
double
Compute the inverse of the Cauchy cdf with given parameters median and scale (gamma) for the probability p. The scale parameter must be a positive double. The probability p must be a double on the interval [0, 1].
Parameters
arg0:
double
arg1:
double
arg2:
double
Compute the inverse of the Chi-square cdf with given df (degrees of freedom) parameter for the cumulative probability (p): P(N < n). The df parameter must be positive real values. The probability p must lie on the interval [0, 1].
Parameters
arg0:
double
arg1:
double
Compute the inverse of the Fisher F cdf with a given df1 (numerator degrees of freedom) and df2 (denominator degrees of freedom) parameters for the cumulative probability (p): P(N < n). The numerator and denominator df parameters must be positive real numbers. The probability p must lie on the interval [0, 1].
Parameters
arg0:
double
arg1:
double
arg2:
double
Compute the inverse of the Gamma cdf with given shape and scale parameters for the cumulative probability (p): P(N < n). The shape and scale parameters must be positive real values. The probability p must lie on the interval [0, 1].
Parameters
arg0:
double
arg1:
double
arg2:
double
Compute the inverse of the Laplace cdf with given mean and scale parameters for the cumulative probability (p): P(N < n). The mean must be a real value and the scale must be a positive real value (both of type DOUBLE). The probability p must lie on the interval [0, 1].
Parameters
arg0:
double
arg1:
double
arg2:
double
Compute the inverse of the Normal cdf with given mean and standard deviation (sd) for the cumulative probability (p): P(N < n). The mean must be a real value and the standard deviation must be a real and positive value (both of type DOUBLE). The probability p must lie on the interval (0, 1).
Parameters
arg0:
double
arg1:
double
arg2:
double
Compute the inverse of the Poisson cdf with given lambda (mean) parameter for the cumulative probability (p). It returns the value of n so that: P(N <= n; lambda) = p. The lambda parameter must be a positive real number (of type DOUBLE). The probability p must lie on the interval [0, 1).
Parameters
arg0:
double
arg1:
double
Compute the inverse of the Weibull cdf with given parameters a, b for the probability p. The a, b parameters must be positive double values. The probability p must be a double on the interval [0, 1].
Parameters
arg0:
double
arg1:
double
arg2:
double
Compute the Laplace cdf with given mean and scale parameters: P(N < value; mean, scale). The mean and value must be real values and the scale parameter must be a positive value (all of type DOUBLE).
Parameters
arg0:
double
arg1:
double
arg2:
double
Compute the Normal cdf with given mean and standard deviation (sd): P(N < value; mean, sd). The mean and value must be real values and the standard deviation must be a real and positive value (all of type DOUBLE).
Parameters
arg0:
double
arg1:
double
arg2:
double
Compute the Poisson cdf with given lambda (mean) parameter: P(N <= value; lambda). The lambda parameter must be a positive real number (of type DOUBLE) and value must be a non-negative integer.
Parameters
arg0:
double
arg1:
int32
Compute the Weibull cdf with given parameters a, b: P(N <= value). The a and b parameters must be positive doubles and value must also be a double.
Parameters
arg0:
double
arg1:
double
arg2:
double
Returns the bucket number for a value in a histogram with uniform bucket widths.
Parameters
arg0:
double
arg1:
double
arg2:
double
arg3:
int64
Returns the lower bound of the Wilson score interval of a Bernoulli trial process at a confidence specified by the z-score z.
Parameters
arg0:
int64
arg1:
int64
arg2:
double
Returns the upper bound of the Wilson score interval of a Bernoulli trial process at a confidence specified by the z-score z.
Parameters
arg0:
int64
arg1:
int64
arg2:
double
Either:
  • Extracts a value from JSON using a path expression.
  • Extracts a value from JSON string using a path expression.
Extracts an array from JSON string using a path expression.
Converts an arbitrary value into a JSON string
Parameters
arg0:
$T
Decodes a Base64url-encoded string to binary data.
Parameters
arg0:
large_string
Either:
  • Makes an HTTP request with string body and returns the response as bytes.
  • Makes an HTTP request with binary body and returns the response as bytes.
Encodes binary data to a Base64url string.
Parameters
arg0:
large_binary
Decodes URL-encoded characters in a string.
Parameters
arg0:
large_string
URL-encodes special characters in a string.
Parameters
arg0:
large_string
Extracts the fragment portion (after #) from a URL.
Parameters
arg0:
large_string
Returns the host from a URL.
Parameters
arg0:
large_string
Extracts the value of a specific query parameter from a URL.
Parameters
arg0:
large_string
arg1:
large_string
Returns the path from a URL.
Parameters
arg0:
large_string
Extracts the port number from a URL.
Parameters
arg0:
large_string
Returns the protocol from a URL.
Parameters
arg0:
large_string
Extracts the query string portion (after ?) from a URL.
Parameters
arg0:
large_string
Either:
  • Generates text completions using a language model with string-based message content.
  • Generates text completions using a language model with multimodal message content (text and images).
Either:
  • Generates embeddings from text using the specified ONNX model.
  • Runs ONNX inference on a tensor input using the specified model.
Makes a completion request to OpenAI's chat API and returns the response.
Parameters
arg0:
large_string
arg1:
large_string
arg2:
large_string
arg3:
int64
arg4:
double
Either:
  • Executes a named prompt template and returns the generated response.
  • Executes a prompt template by its ID and returns the response.
Invokes an AWS SageMaker endpoint for inference with the provided binary input and returns the binary output.
Calculates the lat-lon in degrees for a given h3 cell.
Parameters
arg0:
large_string
Calculates the lat-lon for a given h3 cell.
Parameters
arg0:
large_string
Encodes binary into a base64 string representation.
Parameters
arg0:
large_binary
Encodes binary into a base64 string representation.
Parameters
arg0:
large_binary
Encodes binary into a base64 string representation.
Parameters
arg0:
large_binary
Calculates the CRC32 checksum of binary data.
Parameters
arg0:
large_binary
Decodes a Base64-encoded string to binary data.
Parameters
arg0:
large_string
Convert a 32-bit big-endian bytes value to an integer.
Convert a 64-bit big-endian bytes value to an integer.
Converts a hexadecimal string to binary data.
Parameters
arg0:
large_string
gunzip the input binary data.
Computes HMAC-MD5 authentication code for data using a secret key.
Parameters
arg0:
large_binary
arg1:
large_binary
Computes HMAC-SHA1 authentication code for data using a secret key.
Parameters
arg0:
large_binary
arg1:
large_binary
Computes HMAC-SHA256 authentication code for data using a secret key.
Parameters
arg0:
large_binary
arg1:
large_binary
Computes HMAC-SHA512 authentication code for data using a secret key.
Parameters
arg0:
large_binary
arg1:
large_binary
Computes the MD5 hash of binary data.
Parameters
arg0:
large_binary
Converts protobuf binary data to a structured format.
Parameters
arg0:
large_binary
arg1:
large_string
arg2:
$T
arg3:
large_binary
Converts protobuf binary data to a structured format.
Parameters
arg0:
large_binary
arg1:
large_string
arg2:
$T
arg3:
large_binary
Converts protobuf binary data to a structured format.
Parameters
arg0:
large_binary
arg1:
large_string
arg2:
$T
arg3:
large_binary
Computes the SHA-1 hash of binary data.
Parameters
arg0:
large_binary
Computes the SHA-256 hash of binary data.
Parameters
arg0:
large_binary
Computes the SHA-512 hash of binary data.
Parameters
arg0:
large_binary
Computes a 32-bit SpookyHash V2 hash of binary data.
Parameters
arg0:
large_binary
Computes a 64-bit SpookyHash V2 hash of binary data.
Parameters
arg0:
large_binary
Converts structured data to protobuf binary format.
Parameters
arg0:
large_binary
arg1:
large_string
arg2:
$T
Encodes binary data to a Base64 string.
Parameters
arg0:
large_binary
Converts binary data to its hexadecimal string representation.
Parameters
arg0:
large_binary
Computes a 64-bit XXHash of binary data.
Parameters
arg0:
large_binary
Performs logical AND operation on two boolean values.
Parameters
arg0:
bool
arg1:
bool
Returns the first non-null value from a list of arguments.
Parameters
arg0:
$T
arg1:
$T...
Raises an error with the specified error message.
Overloads
Returns the second argument if the condition is true, otherwise returns the third argument.
Parameters
arg0:
bool
arg1:
$T
arg2:
$T
Checks if the input is null.
Parameters
arg0:
$T
Renders a Jinja2 template string with provided context variables.
Parameters
arg0:
large_string
arg1:
$T
Checks if a string starts with a specified prefix.
Parameters
arg0:
large_string
arg1:
large_string
Returns true if all characters in the string are alphanumeric and there is at least one character, matching Python's str.isalnum() behavior.
Returns true if all characters in the string are alphabetic and there is at least one character, matching Python's str.isalpha() behavior.
Returns true if all cased characters are lowercase and there is at least one cased character, matching Python's str.islower() behavior.
Returns true if all characters are whitespace and there is at least one character, matching Python's str.isspace() behavior.
Returns true if the string is titlecased and there is at least one cased character, matching Python's str.istitle() behavior.
Returns true if all cased characters are uppercase and there is at least one cased character, matching Python's str.isupper() behavior.
Creates a range of integers with Python-like semantics.
Generates a random float between 0 and 1.
Parameters
None
Either:
  • Generates a pseudo-random float between 0 and 1.
  • Generates a pseudo-random integer within the bounds of the specified type.
Return the first valid entry. Functions like coalesce, but allows recovering from an upstream failure
Parameters
arg0:
$T
arg1:
$T...
Either:
  • Generates a cryptographically secure random float between 0 and 1.
  • Generates a cryptographically secure random int8 between the specified bounds.
  • Generates a cryptographically secure random int16 between the specified bounds.
  • Generates a cryptographically secure random int32 between the specified bounds.
  • Generates a cryptographically secure random int64 between the specified bounds.
  • Generates a cryptographically secure random float32 between the specified bounds.
  • Generates a cryptographically secure random float between the specified bounds.
Either:
  • Generates a sequence of integers from start to stop (inclusive).
  • Generates a sequence of integers from start to stop (inclusive) with a specified step.
Attempts to execute an expression and handles any errors gracefully.
Parameters
arg0:
$T