All Functions

This page contains a comprehensive list of all available functions organized by category. Each function links to its detailed documentation page with syntax, examples, and test cases.

Function Categories


Core

Semantics

FunctionDescription
ENTITY Returns a reference to an entity.
INPUT Returns a reference to an input.

Bind

FunctionDescription
BIND_VALUE Binds the given value to the given feature.
BIND_VALUES Binds the given array of values to the given feature or features.
BIND_COLUMNS Binds columns from a table to the given features.

Structural

FunctionDescription
RELATED Joins a feature or an aggregation using a key as base
UNNEST Unnests an array of rows into a table of rows

Types

FunctionDescription
CAST Returns the given expression casted to the given type, or raise an exception if the conversion...
UNSAFE_CAST Returns the given expression casted to the given type, or raise an exception if the conversion...
TRY_CAST Returns the given expression casted to the given type, or NULL if the cast fails.
NULL Returns a NULL value of the given type.
EMPTY Returns a NULL value of type EMPTY.

Functions

FunctionDescription
VARIANT Returns a reference to a variant of the given feature with the given replacements in its...
MACRO Returns a reference to a macro of the given feature with the given inputs.
UDF Returns a reference to a UDF (user-defined function).

Conditional

FunctionDescription
IF Returns one value if a condition is true, another if false
CASE WHEN Returns the result of the first condition that evaluates to true
CASE WHEN VALUE Returns the result corresponding to the first matching value in a simple case expression
COALESCE Returns the first non-NULL value from a list of values

Logical

FunctionDescription
AND Returns TRUE if both arguments are true.
OR Returns TRUE if at least one argument is true.
NOT Returns TRUE if the argument is false.

Comparison

Equality

FunctionDescription
EQUALS Returns TRUE if the first value equals the second value
NOT_EQUALS Returns TRUE if the first value does not equal the second value
IS_NULL Returns TRUE if the expression evaluates to NULL.
IS_NOT_NULL Returns TRUE if the expression does NOT evaluate to NULL.
DISPLAYS_AS Returns TRUE if two values are not distinct, treating NULL values as comparable.
NOT_DISPLAYS_AS Returns TRUE if two values are distinct, treating NULL values as comparable.

Ordering

FunctionDescription
LESS_THAN Returns TRUE if the first value is strictly less than the second value
LESS_THAN_OR_EQUALS Returns TRUE if the first value is less than or equal to the second value
GREATER_THAN Returns TRUE if the first value is strictly greater than the second value
GREATER_THAN_OR_EQUALS Returns TRUE if the first value is greater than or equal to the second value
BETWEEN Returns TRUE if a value is within a specified range (inclusive)
NOT_BETWEEN Returns TRUE if a value is NOT within a specified range (inclusive).
LEAST Returns the least (minimum) value from a list of arguments.
GREATEST Returns the greatest (maximum) value from a list of arguments.

Pattern Matching

FunctionDescription
LIKE Returns TRUE if a string matches a specified pattern with wildcards.
NOT_LIKE Returns TRUE if a string does NOT match a specified pattern with wildcards.

Set Operations

FunctionDescription
IN_LIST Returns TRUE if a value exists in a list of values.
NOT_IN_LIST Returns TRUE if a value does NOT exist in a list of values.

Math

Arithmetic

FunctionDescription
ADD Returns the sum of two quantities, numbers, dates/timestamps or intervals.
SUBTRACT Returns the result of the subtraction of the second number from the first.
MULTIPLY Returns the product of two numbers.
DIVIDE Returns the result of the division of the first number by the second as a double.
TRY_DIVIDE Returns the result of the division of the first number by the second as a double. Returns NULL if...
DIVIDE_TYPE Returns the result of the division of the first number by the second, preserving the type of the...
TRY_DIVIDE_TYPE Returns the result of the division of the first number by the second, preserving the type of the...
MODULO Returns the remainder after dividing the first number by the second (modulo operation).

Rounding

FunctionDescription
ROUND Returns the number rounded to the nearest integer or to a specified number of decimal places.
TRUNCATE Returns the integer part of a number by truncating the fractional part.
FLOOR Rounds a number down to the nearest integer (floor function).
CEIL Returns the number rounded up to the nearest integer (ceiling function).

Sign And Absolute

FunctionDescription
ABS Returns the absolute value of a number.
SIGN Returns the sign of a number: -1 for negative, 0 for zero, and 1 for positive.

Exponential

FunctionDescription
POW Returns the value of a number raised to the power of another number.
SQRT Returns the square root of a number.
CBRT Returns the cube root of a number.
EXP Returns e raised to the power of the given number (exponential function).
LN Returns the natural logarithm (base e) of a number.
LOG Returns the logarithm of a number to a specified base.

Trigonometric

FunctionDescription
COS Returns the cosine of an angle in radians.
SIN Returns the sine of an angle in radians.
TAN Returns the tangent of an angle in radians.
ACOS Returns the arccosine (inverse cosine) of a number in radians.
ASIN Returns the arcsine (inverse sine) of a number in radians.
ATAN Returns the arctangent (inverse tangent) of a number in radians.
ATAN2 Returns the arctangent of y/x, using the signs to determine the quadrant.

Hyperbolic

FunctionDescription
COSH Returns the hyperbolic cosine of a number.
SINH Returns the hyperbolic sine of a number.
TANH Returns the hyperbolic tangent of a number.

Angle Conversion

FunctionDescription
DEGREES Returns the angle in degrees for the given angle in radians.
RADIANS Returns the angle in radians for the given angle in degrees.

Base Conversion

FunctionDescription
FROM_BASE Returns the decimal (base 10) equivalent of a number from a specified base.
TO_BASE Returns the string representation of a decimal number in a specified base.

Constant

FunctionDescription
E Returns the mathematical constant e (Euler's number).
PI Returns the mathematical constant π (pi).
INFINITY Returns the floating-point representation of positive infinity.
NAN Returns the floating-point representation of NaN (Not a Number).

Validation Math

FunctionDescription
IS_FINITE Returns TRUE if a number is finite (not infinite and not NaN).
IS_INFINITE Returns TRUE if a number is infinite (positive or negative infinity).
IS_NAN Returns TRUE if a value is NaN (Not a Number).

Bucketing

FunctionDescription
WIDTH_BUCKET_REGULAR Returns the bucket number for a value in equally-spaced buckets within a range.
WIDTH_BUCKET Returns the bucket number for a value in a histogram with custom bin boundaries.

String

Case Conversion

FunctionDescription
LOWER Returns the string with all characters converted to lowercase.
UPPER Returns the string with all characters converted to uppercase.

Padding And Trimming

FunctionDescription
TRIM Returns the string with whitespace from both ends removed.
LTRIM Returns the string with whitespace from the left (beginning) removed.
RTRIM Returns the string with whitespace from the right (end) removed.
LPAD Returns the string padded on the left to a specified length with a padding string.
RPAD Returns the string padded on the right to a specified length with a padding string.

Search String

FunctionDescription
STARTS_WITH Returns TRUE if a string starts with a specified prefix.
ENDS_WITH Returns TRUE if a string ends with a specified suffix.
POSITION Returns the position of the first occurrence of a substring within a string.
STRPOS Returns the position of a substring within a string, optionally finding the N-th occurrence.

Extraction String

FunctionDescription
SUBSTR Returns a substring from a string starting at a specified position.
SPLIT Returns an array of substrings from a string split by a delimiter.
SPLIT_PART Returns a specific part of a string after splitting by a delimiter.

Transformation String

FunctionDescription
REVERSE Returns the string with all characters in reverse order.
REPLACE Returns the string with all occurrences of a substring replaced with another substring.
TRANSLATE Returns a string with character-level replacements applied based on character-to-character mappings.

Concatenation

FunctionDescription
CONCAT Returns a single concatenated string from a list of strings.
CONCAT_WS Returns a concatenated string from a list of strings with a separator between each element.

Character

FunctionDescription
LENGTH Returns the number of characters in a string.
CHR Returns the character corresponding to the given Unicode code point.
CODEPOINT Returns the Unicode code point of the first character in a string.

Distance

FunctionDescription
HAMMING_DISTANCE Returns the Hamming distance between two strings of equal length.
LEVENSHTEIN_DISTANCE Returns the Levenshtein (edit) distance between two strings.

Phonetic

FunctionDescription
WORD_STEM Returns the stem (root form) of a word using language-specific stemming rules.
SOUNDEX Returns a four-character Soundex code representing the phonetic sound of a string.

Validation String

FunctionDescription
LUHN_CHECK Returns TRUE if a string passes the Luhn algorithm (modulus 10 checksum).

Hash

FunctionDescription
MD5 Returns the MD5 hash of a string as a 32-character hexadecimal string.
SHA1 Returns the SHA-1 hash of a string as a 40-character hexadecimal string.
SHA256 Returns the SHA-256 hash of a string as a 64-character hexadecimal string.

Regex

FunctionDescription
REGEX_CONTAINS Returns TRUE if a string contains a match for a regular expression pattern.
REGEX_EXTRACT_FIRST Returns the first substring matching a regular expression pattern, optionally extracting a specific...
REGEX_EXTRACT_ALL Returns an array of all substrings matching a regular expression pattern.
REGEX_REPLACE_FIRST Returns the string with the first occurrence of a regular expression pattern replaced.
REGEX_REPLACE_ALL Returns the string with all occurrences of a regular expression pattern replaced.

Date And Time

Arithmetic Date

FunctionDescription
ADD Returns the date/timestamp after adding a given interval to the given date/timestamp.
SUBTRACT Returns difference between two dates or date and interval.
DATE_ADD Returns the date/timestamp after adding a given number of a given units to the given date/timestamp.
DATE_DIFF Returns the difference between the two given timestamps in the given unit.

Extraction Date

FunctionDescription
EXTRACT_FROM_DATE Returns the part of the given timestamp in the given unit.

Formatting Date

FunctionDescription
DATE_TRUNC Returns the given timestamp truncated to the given unit.
DATE_FORMAT Returns a string from the given timestamp and format.
TO_ISO8601 Returns an ISO 8601 string from the given timestamp.

Parsing Date

FunctionDescription
DATE_PARSE Returns a timestamp from the given string and format.
FROM_ISO8601_TIMESTAMP Returns a timestamp from the given ISO 8601 string.

Conversion Date

FunctionDescription
FROM_UNIXTIME Returns a timestamp from the given unix timestamp (BIGINT representation of the number of seconds...
TO_UNIXTIME Returns a unix timestamp (BIGINT representation of the number of seconds since 1970-01-01 00:00:00...

Duration

FunctionDescription
HUMAN_READABLE_SECONDS Returns a human readable string from the given number of seconds.
PARSE_DURATION Returns an interval from the given duration string.
TO_MILLISECONDS Returns the truncated number of milliseconds in the given interval.

Json

FunctionDescription
JSON_PARSE Returns the given string as a JSON expression.
JSON_PARSE_AS Returns the value of a JSON expression represented as a string in the given type.
JSON_EXTRACT Returns the value of the given JSON path in the given JSON expression.
JSON_EXTRACT_SCALAR Returns the scalar value of the given JSON path in the given JSON expression.
JSON_FORMAT Returns the given JSON expression as a string.

Array

Element Access

FunctionDescription
ELEMENT_AT_POS Returns the element at the specified position in an array.
ELEMENTS_AT_POS Returns the elements at multiple specified positions in an array.
SLICE Returns a slice of an array using start:length:step semantics.
SLICE_END Returns the elements at multiple specified positions in an array.

Search And Lookup

FunctionDescription
CONTAINS Returns TRUE if the array contains the specified element.
CONTAINS_SEQUENCE Returns TRUE if the array contains the specified sequence as a contiguous subsequence.
ARRAY_POSITION Returns the 1-based position of the first occurrence of an element in an array.
ARRAY_LOOKUP Returns the value corresponding to a lookup key using parallel key-value arrays.

Filtering And Transformation

FunctionDescription
ARRAY_SORT Returns the sorted version of an array.
ARRAY_REVERSE Returns the reverse of an array.
ARRAY_DISTINCT Returns an array with distinct elements, sorted in ascending order.
ARRAY_REMOVE Returns an array with all occurrences of the specified element removed.
FLATTEN Flattens a nested array structure into a single-level array.

Set Operations

FunctionDescription
ARRAY_UNION Returns the union of two arrays, eliminating duplicate elements.
ARRAY_INTERSECT Returns the intersection of two arrays using set semantics.
ARRAY_EXCEPT Returns the difference of two arrays using set semantics.
ARRAYS_OVERLAP Returns TRUE if any elements are common between the two arrays.

Aggregation And Statistics

FunctionDescription
ARRAY_LENGTH Returns the number of elements in an array.
ARRAY_SUM Returns the sum of all numeric elements in an array.
ARRAY_AVG Returns the arithmetic mean (average) of all numeric elements in an array.
ARRAY_MIN Returns the smallest value in an array using natural ordering.
ARRAY_MAX Returns the largest value in an array using natural ordering.
ARRAY_HISTOGRAM Returns a frequency histogram of values in an array as an array of value-count pairs.

Boolean Operations

FunctionDescription
ALL Returns TRUE if all elements in the boolean array are true.
ANY Returns TRUE if any element in the boolean array is true.
NONE Returns TRUE if no elements in the boolean array are true.
ARRAY_NOT Returns an array with inverted boolean values (logical NOT applied to each element).

Array Combination

FunctionDescription
ARRAY_CONCAT Concatenates multiple arrays into a single combined array with optional deduplication.

Array Generation

FunctionDescription
REPEAT Creates an array by repeating an element a specified number of times.
SEQUENCE Generates an array containing a sequence of numbers from start to stop with optional step.

String Conversion

FunctionDescription
ARRAY_JOIN Joins the elements of an array into a single string using a specified delimiter.

Vector Operations

FunctionDescription
COSINE_SIMILARITY Calculates the cosine similarity between two arrays.
DOT_PRODUCT Calculates the dot product of two arrays.
EUCLIDEAN_DISTANCE Calculates the Euclidean distance between two arrays.
NORMALIZE Normalizes a numeric array by dividing each element by the sum of all elements.

Row

FunctionDescription
MERGE Merges multiple row structures into a single row with combined fields

Array Of Rows

Indexing

FunctionDescription
INDEX_UNIQUE Returns an index unique computed from the given array and key.
INDEX_MULTI Returns an index multi computed from the given array and key.
ELEMENT_AT_KEY Returns one element at the given key from the given index, array or array of rows.
ELEMENTS_AT_KEY Returns multiple elements at the given key from the given index, array or array of rows.

Other

FunctionDescription
EXTRACT Returns the extracted fields from the given expression.
UNWRAP Returns the first field values from an array of single-field rows as a simple array.
UNWRAP_ONE Returns the value of the first field of the first element in an array of single-field rows.
ZIP Combines multiple arrays into a single array of structured rows with named fields.
ARRAY_MERGE Merges multiple arrays of rows element-wise into a single array of combined rows, with optional...
EXTEND Adds computed feature fields to a base row or array of rows with field bindings
TRANSFORM_U Transforms an array of rows using UNNEST with full SQL query capabilities

Group By

Numeric

FunctionDescription
SUM() GROUP BY ... Returns the sum of the values in the group.
AVG() GROUP BY ... Returns the average of the values in the group.
MAX() GROUP BY ... Returns the maximum value in the group.
MIN() GROUP BY ... Returns the minimum value in the group.

Counting

FunctionDescription
COUNT() GROUP BY ... Returns the number of values in the group.
COUNT_IF() GROUP BY ... Returns the number of values in the group that are true.
COUNT_DISTINCT() GROUP BY ... Returns the number of distinct values in the group.
APPROX_DISTINCT() GROUP BY ... Returns the approximate number of distinct values in the group.

Boolean

FunctionDescription
BOOL_AND() GROUP BY ... Returns TRUE if all values in the group are true.
BOOL_OR() GROUP BY ... Returns TRUE if any value in the group is true.

Collection

FunctionDescription
ANY_VALUE() GROUP BY ... Returns an arbitrary value from the group.
ARRAY_AGG() GROUP BY ... Returns an array of the values in the group.
MIN_BY() GROUP BY ... Returns the minimum value in the group by the given expression.
MAX_BY() GROUP BY ... Returns the maximum value in the group by the given expression.

Statistical

FunctionDescription
STDDEV_POP() GROUP BY ... Returns the population standard deviation of the values in the group.
STDDEV_SAMP() GROUP BY ... Returns the sample standard deviation of the values in the group.
VAR_POP() GROUP BY ... Returns the population variance of the values in the group.
VAR_SAMP() GROUP BY ... Returns the sample variance of the values in the group.
CORR() GROUP BY ... Returns the Pearson correlation coefficient between two expressions.
COVAR_POP() GROUP BY ... Returns the population covariance between two expressions.
COVAR_SAMP() GROUP BY ... Returns the sample covariance between two expressions.
REGR_SLOPE() GROUP BY ... Returns the slope of the linear regression line fitted to (x, y) pairs.
REGR_INTERCEPT() GROUP BY ... Returns the y-intercept of the linear regression line fitted to (x, y) pairs.
REGR_R2() GROUP BY ... Returns the coefficient of determination (R²) of the linear regression.
APPROX_PERCENTILE() GROUP BY ... Returns the approximate value at the given percentile.

Window Function

Numeric

FunctionDescription
SUM() OVER ... Returns the sum of values in the window frame.
AVG() OVER ... Returns the average of values in the window frame.
MIN() OVER ... Returns the minimum value in the window frame.
MAX() OVER ... Returns the maximum value in the window frame.

Counting

FunctionDescription
COUNT() OVER ... Returns the count of rows in the window frame.
COUNT_IF() OVER ... Returns the count of rows where the condition is true in the window frame.
COUNT_DISTINCT() OVER ... Returns the count of distinct non-null values in the window frame.
APPROX_DISTINCT() OVER ... Returns the approximate number of distinct values in the window frame.

Boolean

FunctionDescription
BOOL_AND() OVER ... Returns TRUE if all boolean values in the window frame are true.
BOOL_OR() OVER ... Returns TRUE if any boolean value in the window frame is true.

Numbering

FunctionDescription
ROW_NUMBER() OVER ... Returns a unique sequential number for each row within its partition, starting at 1.
RANK() OVER ... Returns the rank of the current row within its partition, with gaps. Rows with equal values for the...
DENSE_RANK() OVER ... Returns the rank of the current row within its partition, without gaps. Similar to RANK but...
NTILE() OVER ... Returns the bucket number (1 to n) for each row in a partition, where n is the number of buckets.
PERCENT_RANK() OVER ... Returns the relative rank of the current row: (rank - 1) / (total rows - 1).
CUME_DIST() OVER ... Returns the cumulative distribution: (number of rows <= current row) / (total rows).

Offset

FunctionDescription
LEAD() OVER ... Returns the value from the row that leads (follows) the current row by a specified offset within...
LAG() OVER ... Returns the value from the row that lags (precedes) the current row by a specified offset within...
FIRST_VALUE() OVER ... Returns the first value in the window frame.
LAST_VALUE() OVER ... Returns the last value in the window frame.
NTH_VALUE() OVER ... Returns the value at the nth row of the window frame.

Collection

FunctionDescription
ANY_VALUE() OVER ... Returns an arbitrary non-null value from the window frame, if one exists.
ARRAY_AGG() OVER ... Returns an array of all values in the window frame.
MIN_BY() OVER ... Returns the value of the first expression corresponding to the minimum value of the second...
MAX_BY() OVER ... Returns the value of the first expression corresponding to the maximum value of the second...

Statistical

FunctionDescription
STDDEV_POP() OVER ... Returns the population standard deviation over the window frame.
STDDEV_SAMP() OVER ... Returns the sample standard deviation over the window frame.
VAR_POP() OVER ... Returns the population variance over the window frame.
VAR_SAMP() OVER ... Returns the sample variance over the window frame.
CORR() OVER ... Returns the Pearson correlation coefficient over the window frame.
COVAR_POP() OVER ... Returns the population covariance over the window frame.
COVAR_SAMP() OVER ... Returns the sample covariance over the window frame.
REGR_SLOPE() OVER ... Returns the slope of the linear regression line over the window frame.
REGR_INTERCEPT() OVER ... Returns the y-intercept of the linear regression line over the window frame.
REGR_R2() OVER ... Returns the coefficient of determination (R²) over the window frame.

Metadata

Exploration

FunctionDescription
IS_DOWNSTREAM_OF Returns TRUE if the current feature is dependent of the given feature in the dependency DAG
IS_UPSTREAM_OF Returns TRUE if the current feature is a dependency of the given feature in the dependency DAG
DEPTH_RELATIVE_TO Returns the depth of the current feature relative to the given feature in the dependency DAG

Other

FunctionDescription
KEYSET Returns a reference to a keyset.
PREPARED_STATEMENT Returns a reference to a prepared statement of the given feature with the given inputs.
TYPEOF Returns the type of the given expression in FeatureQL.
SQLTYPEOF Returns the type of the given expression in the target database.
VERSION Returns the version of the featuremesh registry.

Business

Time Travel

FunctionDescription
SCD_AT_TIME Returns the state of an SCD (slowly changing dimension) value at the given point in time.
ACCUMULATION_AT_TIME Returns the state of an accumulation of events at the given point in time.

Growth Accounting

FunctionDescription
TO_ACTIVITY_BITS Returns the activity bits for the given array of activity dates and date reference.
FROM_ACTIVITY_BITS Returns the activity dates for the given activity bits and date reference.
BINARY_REPRESENTATION Returns the binary representation as a string of the given activity bits
UPDATE_ACTIVITY_BIT Returns the activity bits for the given activity bits and whether the current day is active.
IS_ACTIVE Returns whether the given activity bits is active for the given time period
ACTIVITY_STATUS Returns the activity status between two time periods for the given activity bits
COUNT_ACTIVE Returns the number of active days for the given activity bits and time period
RECENCY Returns the number of days since the last active day for the given activity bits

Experimentation

FunctionDescription
HASH01 Returns a value between 0 and 1 based on the given hashing key.
GRADUAL_ROLLOUT Returns the exposure to a new version based on the given hashing key and rollout parameters.

Simulations

FunctionDescription
SAMPLE_UNIFORM Returns a value uniformly chosen between two bounds based on the given hashing key.
SAMPLE_GAUSSIAN Returns a value chosen from a normal distribution between two bounds based on the given hashing key.
SAMPLE_VALUE Returns a value from the given array of values and proportions based on the given hashing key.
SAMPLE_BOOL Returns the discrete event (true or false) with the given probability based on the given hashing...

Source

Mapping

FunctionDescription
EXTERNAL_COLUMNS Mapping of source columns to features.
EXTERNAL_REDIS Returns the value of the given key and field (optionally) from the given Redis source
EXTERNAL_HTTP Returns the JSON response from a HTTP call

Connection

FunctionDescription
SOURCE_HTTP Creates a HTTP connection to the given URI
SOURCE_JDBC Creates a JDBC connection to the given DSN
SOURCE_REDIS Creates a Redis connection to the given URI

Bitwise

FunctionDescription
BIT_AND Returns the bitwise AND of two bitstrings.
BIT_OR Returns the bitwise OR of two bitstrings.
BIT_XOR Returns the bitwise XOR (exclusive OR) of two bitstrings.
BIT_NOT Returns the bitwise NOT (complement) of a bitstring, flipping every bit.
BIT_SHIFT_LEFT Returns the bitstring shifted left by N positions, filling with zeros on the right.
BIT_SHIFT_RIGHT Returns the bitstring shifted right by N positions, filling with zeros on the left.

Metaprogramming

Non Deterministic

FunctionDescription
CURRENT_TIMESTAMP Returns the current date and time.
RANDOM Returns a random number in the range 0.0 <= x < 1.0

Other

FunctionDescription
EVAL_CONST Returns the result of evaluating a constant formula as a literal.

Summary

  • Total Functions: 282
  • Total Categories: 18

This documentation is automatically generated from the FeatureMesh registry.

Last update at: 2026/03/03 16:47:38
Last updated: 2026-03-03 16:48:19