All Functions

Show only functions available on

Showing all 427 functions

Backend availability

DD Available DD Partially available DD Not available

Function categories

Core

Semantics

FunctionDescriptionBackends
ENTITY()Returns a reference to an entity.DDPGCHTRBQSFDBSV
INPUT()Declares an input: a typed value that the query binds, such as an entity key.DDPGCHTRBQSFDBSV
KEY_TO_SCALAR()Drop the entity annotation and keep the base type and unitDDPGCHTRBQSFDBSV
KEY_PAIR()Unordered pair of two identity keys from one familyDDPGCHTRBQSFDBSV
IS_KEY_BEFORE()True when the first identity key is strictly before the secondDDPGCHTRBQSFDBSV

Bind

FunctionDescriptionBackends
BIND_VALUE()Binds the given value to the given feature.DDPGCHTRBQSFDBSV
BIND_VALUES()Binds the given array of values to the given feature or features.DDPGCHTRBQSFDBSV
BIND_COLUMNS()Binds columns from a table to the given features.DDPGCHTRBQSFDBSV
@BIND_KEYSET(...)Binds entity keys from a keyset, keyset group, or mapped source.DDPGCHTRBQSFDBSV

Structural

FunctionDescriptionBackends
RELATED()Brings a value from another entity: a lookup through a foreign key, or an aggregation of the...DDPGCHTRBQSFDBSV
UNNEST()Unnests an array of rows into a table of rowsDDPGCHTRBQSFDBSV

Types

FunctionDescriptionBackends
CAST()Returns the given expression casted to the given type, or raise an exception if the conversion...DDPGCHTRBQSFDBSV
UNSAFE_CAST()Returns the given expression casted to the given type, allowing to change or remove entity typeDDPGCHTRBQSFDBSV
NULL()Returns a NULL value of the given type.DDPGCHTRBQSFDBSV
EMPTY()Returns an EMPTY filling for empty parameters in functions.DDPGCHTRBQSFDBSV

Functions

FunctionDescriptionBackends
VARIANT()Recomputes a feature with some of its dependencies replaced by other definitions.DDPGCHTRBQSFDBSV
MACRO()Turns a feature expression into a function whose parameters are some of its inputs.DDPGCHTRBQSFDBSV
UDF()Defines a polymorphic user-defined function with typed signatures and dialect SQL expressions.DDPGCHTRBQSFDBSV

Source

Connection

FunctionDescriptionBackends
SECRET()A secret of the serving engine's environment, for a source's credentialsDDPGCHTRBQSFDBSV
SOURCE_DB()Creates a connection to an operational database (PostgreSQL, MySQL, DynamoDB), picked by the DSN's...DDPGCHTRBQSFDBSV
SOURCE_HTTP()Creates a HTTP connection to the given URIDDPGCHTRBQSFDBSV
SOURCE_KV()Creates a connection to a key-value store (Redis), picked by the URI's schemeDDPGCHTRBQSFDBSV
SOURCE_STREAM()A stream's broker and record format. Its records are declared with EXTERNAL_COLUMNS(... FROM...DDPGCHTRBQSFDBSV

Mapping

FunctionDescriptionBackends
EXTERNAL_COLUMNS()Maps columns of a table, view, SQL query or inline data to a ROW feature.DDPGCHTRBQSFDBSV
EXTERNAL_KV()Returns the value of a key (or of a field of a hash) from a key-value sourceDDPGCHTRBQSFDBSV
EXTERNAL_HTTP()Returns the JSON response from a HTTP callDDPGCHTRBQSFDBSV

Conditional

FunctionDescriptionBackends
NULLIF()Returns NULL when two values compare equal; otherwise returns the first valueDDPGCHTRBQSFDBSV
IF()Returns one value if a condition is true, another if falseDDPGCHTRBQSFDBSV
CASE WHENReturns the result of the first condition that evaluates to trueDDPGCHTRBQSFDBSV
CASE WHEN VALUEReturns the result corresponding to the first matching value in a simple case expressionDDPGCHTRBQSFDBSV
COALESCE(...)Returns the first non-NULL value from a list of valuesDDPGCHTRBQSFDBSV

Logical

FunctionDescriptionBackends
ANDReturns TRUE when both boolean operands are TRUE.DDPGCHTRBQSFDBSV
ORReturns TRUE when at least one boolean operand is TRUE.DDPGCHTRBQSFDBSV
NOTReturns FALSE if the operand is TRUE, TRUE if it is FALSE.DDPGCHTRBQSFDBSV

Comparison

Equality

FunctionDescriptionBackends
= [equals]Returns TRUE if the first value equals the second valueDDPGCHTRBQSFDBSV
!= [not]Returns TRUE if the first value does not equal the second valueDDPGCHTRBQSFDBSV
IS NULLReturns TRUE if the expression evaluates to NULL.DDPGCHTRBQSFDBSV
IS NOT NULLReturns TRUE if the expression does NOT evaluate to NULL.DDPGCHTRBQSFDBSV
IS NOT DISTINCT FROMReturns TRUE if two values are not distinct, treating NULL values as comparable.DDPGCHTRBQSFDBSV
IS DISTINCT FROMReturns TRUE if two values are distinct, treating NULL values as comparable.DDPGCHTRBQSFDBSV

Ordering

FunctionDescriptionBackends
< [less]Returns TRUE if the first value is strictly less than the second valueDDPGCHTRBQSFDBSV
<= [less]Returns TRUE if the first value is less than or equal to the second valueDDPGCHTRBQSFDBSV
> [greater]Returns TRUE if the first value is strictly greater than the second valueDDPGCHTRBQSFDBSV
>= [greater]Returns TRUE if the first value is greater than or equal to the second valueDDPGCHTRBQSFDBSV
BETWEENReturns TRUE if a value is within a specified range (inclusive)DDPGCHTRBQSFDBSV
NOT BETWEENReturns TRUE if a value is NOT within a specified range (inclusive).DDPGCHTRBQSFDBSV
LEAST(...)Returns the least (minimum) value from a list of arguments.DDPGCHTRBQSFDBSV
GREATEST(...)Returns the greatest (maximum) value from a list of arguments.DDPGCHTRBQSFDBSV

Pattern Matching

FunctionDescriptionBackends
LIKEReturns TRUE if a string matches a specified pattern with wildcards.DDPGCHTRBQSFDBSV
NOT LIKEReturns TRUE if a string does NOT match a specified pattern with wildcards.DDPGCHTRBQSFDBSV
LIKE multipleCase-sensitive or case-insensitive pattern matching: `LIKE` / `ILIKE` with `ANY`, `ALL`, or `NONE`...DDPGCHTRBQSFDBSV

Set Operations

FunctionDescriptionBackends
INReturns TRUE if a value exists in a list of values.DDPGCHTRBQSFDBSV
NOT INReturns TRUE if a value does NOT exist in a list of values.DDPGCHTRBQSFDBSV

Math

Arithmetic

FunctionDescriptionBackends
+ [addition]Adds two numeric values, or adds an interval to a date or timestamp.DDPGCHTRBQSFDBSV
UNARY_MINUS()Negates a numeric expression (unary minus).DDPGCHTRBQSFDBSV
UNARY_PLUS()Explicit unary plus on an expression (no-op on the value).DDPGCHTRBQSFDBSV
- [subtraction]Subtracts the right-hand value from the left-hand value (numeric, temporal, or interval forms).DDPGCHTRBQSFDBSV
FACTORIAL()Returns the factorial of a non-negative integer (n!).DDPGCHTRBQSFDBSV
CLAMP()Constrains a value to a closed interval: the result is the value limited to lie between low and...DDPGCHTRBQSFDBSV
* [multiplication]Returns the product of two numbers, or scales an interval by an integer factor.DDPGCHTRBQSFDBSV
/ [division]Divides the left-hand number by the right-hand number, producing a DOUBLE result.DDPGCHTRBQSFDBSV
// [type-preserving]Divides the left-hand number by the right-hand number while preserving the dividend's type...DDPGCHTRBQSFDBSV
% [remainder]Returns the remainder after dividing the left-hand number by the right-hand number.DDPGCHTRBQSFDBSV

Rounding

FunctionDescriptionBackends
ROUND()Rounds a number to the nearest integer or to a specified number of decimal places.DDPGCHTRBQSFDBSV
TRUNCATE()Returns the integer part of a number by discarding the fractional part.DDPGCHTRBQSFDBSV
FLOOR()Returns the largest integer less than or equal to the input.DDPGCHTRBQSFDBSV
CEIL()Returns the smallest integer greater than or equal to the input.DDPGCHTRBQSFDBSV

Sign And Absolute

FunctionDescriptionBackends
ABS()Returns the absolute value of a number.DDPGCHTRBQSFDBSV
SIGN()Returns the sign of a number: -1 for negative, 0 for zero, 1 for positive.DDPGCHTRBQSFDBSV

Exponential

FunctionDescriptionBackends
^ [exponentiation]Raises a number to a power (integer or floating-point operands of the same type).DDPGCHTRBQSFDBSV
SQRT()Returns the square root of a number.DDPGCHTRBQSFDBSV
CBRT()Returns the cube root of a number.DDPGCHTRBQSFDBSV
EXP()Returns e raised to the power of the given number.DDPGCHTRBQSFDBSV
LN()Returns the natural logarithm (base e) of a number.DDPGCHTRBQSFDBSV
LOG()Returns the logarithm of a number to a specified base.DDPGCHTRBQSFDBSV

Trigonometric

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

Hyperbolic

FunctionDescriptionBackends
COSH()Returns the hyperbolic cosine of a number.DDPGCHTRBQSFDBSV
SINH()Returns the hyperbolic sine of a number.DDPGCHTRBQSFDBSV
TANH()Returns the hyperbolic tangent of a number.DDPGCHTRBQSFDBSV

Angle Conversion

FunctionDescriptionBackends
DEGREES()Converts an angle from radians to degrees.DDPGCHTRBQSFDBSV
RADIANS()Converts an angle from degrees to radians.DDPGCHTRBQSFDBSV

Base Conversion

FunctionDescriptionBackends
FROM_BASE()Returns the decimal (base 10) equivalent of a number expressed in a specified base.DDPGCHTRBQSFDBSV
TO_BASE()Returns the string representation of a decimal number in a specified base.DDPGCHTRBQSFDBSV

Constant

FunctionDescriptionBackends
E()Returns the mathematical constant e (Euler's number).DDPGCHTRBQSFDBSV
PI()Returns the mathematical constant π (pi).DDPGCHTRBQSFDBSV

Bucketing

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

Bitwise

FunctionDescriptionBackends
Bitwise ANDReturns the bitwise AND of two bitstrings or two integers.DDPGCHTRBQSFDBSV
Bitwise ORReturns the bitwise OR of two bitstrings or two integers.DDPGCHTRBQSFDBSV
Bitwise XORReturns the bitwise XOR (exclusive OR) of two bitstrings or two integers.DDPGCHTRBQSFDBSV
Bitwise NOTReturns the bitwise NOT (complement) of a bitstring or an integer, flipping every bit.DDPGCHTRBQSFDBSV
Bitwise left shiftReturns the bitstring or integer shifted left by N positions, filling with zeros on the right.DDPGCHTRBQSFDBSV
Bitwise right shiftReturns the bitstring or integer shifted right by N positions.DDPGCHTRBQSFDBSV
BIT_COUNT()Returns the number of 1-bits in the two’s-complement binary representation of an integer.DDPGCHTRBQSFDBSV

String

Case Conversion

FunctionDescriptionBackends
LOWER()Returns the string with all characters converted to lowercase.DDPGCHTRBQSFDBSV
UPPER()Returns the string with all characters converted to uppercase.DDPGCHTRBQSFDBSV
TITLE()Returns the string with the first letter of each whitespace-delimited word in uppercase and the...DDPGCHTRBQSFDBSV

Padding And Trimming

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

Search String

FunctionDescriptionBackends
STARTS_WITH()Returns TRUE if a string starts with a specified prefix.DDPGCHTRBQSFDBSV
ENDS_WITH()Returns TRUE if a string ends with a specified suffix.DDPGCHTRBQSFDBSV
POSITIONReturns the 1-based index of the first occurrence of a substring within a string.DDPGCHTRBQSFDBSV
STRPOS()Returns the position of a substring within a string, optionally finding the N-th occurrence.DDPGCHTRBQSFDBSV

Extraction String

FunctionDescriptionBackends
LEFT()Returns the first `n` characters of the string (or the full string when `n` is greater than its...DDPGCHTRBQSFDBSV
RIGHT()Returns the last `n` characters of the string (or the full string when `n` is greater than its...DDPGCHTRBQSFDBSV
SUBSTR()Returns a substring from a string starting at a specified position.DDPGCHTRBQSFDBSV
SPLIT()Returns an array of substrings from a string split by a delimiter.DDPGCHTRBQSFDBSV
SPLIT_PART()Returns a specific part of a string after splitting by a delimiter.DDPGCHTRBQSFDBSV

Transformation String

FunctionDescriptionBackends
REVERSE()Returns the string with all characters in reverse order.DDPGCHTRBQSFDBSV
REPLACE()Returns the string with all occurrences of a substring replaced with another substring.DDPGCHTRBQSFDBSV
FORMAT(...)Builds a VARCHAR from a C-style format string and one scalar argument per placeholder.DDPGCHTRBQSFDBSV
TRANSLATE()Returns a string with character-level replacements applied based on character-to-character mappings.DDPGCHTRBQSFDBSV
BASE64_ENCODE()Encodes a string as standard Base64 text.DDPGCHTRBQSFDBSV
BASE64_DECODE()Decodes a Base64 string back to plain text.DDPGCHTRBQSFDBSV
HEX_ENCODE()Encodes a string as a contiguous hexadecimal string (two hex digits per byte).DDPGCHTRBQSFDBSV
HEX_DECODE()Decodes a contiguous hexadecimal string back to plain text.DDPGCHTRBQSFDBSV
URL_ENCODE()Encodes a string for safe use in URL components using percent-encoding (RFC 3986).DDPGCHTRBQSFDBSV
URL_DECODE()Decodes a percent-encoded string (RFC 3986).DDPGCHTRBQSFDBSV

Concatenation

FunctionDescriptionBackends
CONCAT(...)Returns a single concatenated string from a list of strings.DDPGCHTRBQSFDBSV
|| [concatenation]Concatenates two strings; chains associate to the left (same underlying `CONCAT_FN` bundle as...DDPGCHTRBQSFDBSV
CONCAT_WS(...)Returns a concatenated string from a list of strings with a separator between each element.DDPGCHTRBQSFDBSV

Character

FunctionDescriptionBackends
LENGTH()Returns the number of characters in a string.DDPGCHTRBQSFDBSV
CHR()Returns the character corresponding to the given Unicode code point.DDPGCHTRBQSFDBSV
CODEPOINT()Returns the Unicode code point of a one-character string.DDPGCHTRBQSFDBSV

Distance

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

Phonetic

FunctionDescriptionBackends
SOUNDEX()Returns a four-character Soundex code representing the phonetic sound of a string.DDPGCHTRBQSFDBSV

Hash

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

Regex

FunctionDescriptionBackends
REGEX_CONTAINS()Returns TRUE if the haystack string contains a match for the regular expression pattern (substring...DDPGCHTRBQSFDBSV
REGEX_MATCH()Returns TRUE if the entire string matches the regular expression pattern. Unlike REGEX_CONTAINS,...DDPGCHTRBQSFDBSV
REGEX_EXTRACT_FIRST()Returns the first substring that matches the pattern, optionally selecting a capture group index (0...DDPGCHTRBQSFDBSV
REGEX_EXTRACT_ALL()Returns an array of every non-overlapping substring that matches the pattern, in left-to-right...DDPGCHTRBQSFDBSV
REGEX_SPLIT()Splits a string by a regular expression pattern and returns the parts between matches as an array.DDPGCHTRBQSFDBSV
REGEX_REPLACE_FIRST()Returns the haystack with the first regular-expression match replaced by the replacement string.DDPGCHTRBQSFDBSV
REGEX_REPLACE_ALL()Returns the haystack with every non-overlapping regular-expression match replaced by the...DDPGCHTRBQSFDBSV

Date And Time

Date/timestamp arithmetic

FunctionDescriptionBackends
ADD()Returns the timestamp after adding an interval to a date or timestamp.DDPGCHTRBQSFDBSV
DATE_ADD()Returns the date/timestamp after adding a given number of a given units to the given date or...DDPGCHTRBQSFDBSV
SUBTRACT()Subtracts an interval from a timestamp or date, or returns the interval between two timestamps or...DDPGCHTRBQSFDBSV
DATE_SUBTRACT()Returns the number of complete elapsed units in timestamp1 − timestamp2. Chaining-friendly: the...DDPGCHTRBQSFDBSV
DATE_DIFF()Returns the number of calendar boundary crossings in timestamp1 − timestamp2. Same argument order...DDPGCHTRBQSFDBSV

Calendar queries

FunctionDescriptionBackends
FIRST_DAY_OF()Returns the first calendar day of the period containing the given date or timestamp: a DATE for a...DDPGCHTRBQSFDBSV
LAST_DAY_OF()Returns the last calendar day of the period containing the given date or timestamp: a DATE for a...DDPGCHTRBQSFDBSV
DAYS_IN()Returns the number of calendar days in the MONTH, QUARTER, HALF (half-year), or YEAR that contains...DDPGCHTRBQSFDBSV

Sequence generation

FunctionDescriptionBackends
SEQUENCE()Generates an inclusive array of dates or timestamps separated by an interval.DDPGCHTRBQSFDBSV
DATE_SEQUENCE()Returns an array of timestamps: `count` values beginning at `start`, each separated by `interval`.DDPGCHTRBQSFDBSV

Extraction

FunctionDescriptionBackends
DATE_PART()Returns the part of the given timestamp in the given unit.DDPGCHTRBQSFDBSV
DAY()Returns the day component of a date or timestamp.DDPGCHTRBQSFDBSV
HOUR()Returns the hour component of a date or timestamp.DDPGCHTRBQSFDBSV
MINUTE()Returns the minute component of a date or timestamp.DDPGCHTRBQSFDBSV
MONTH()Returns the month component of a date or timestamp.DDPGCHTRBQSFDBSV
QUARTER()Returns the quarter component of a date or timestamp.DDPGCHTRBQSFDBSV
SECOND()Returns the second component of a date or timestamp.DDPGCHTRBQSFDBSV
WEEK()Returns the week component of a date or timestamp.DDPGCHTRBQSFDBSV
YEAR()Returns the year component of a date or timestamp.DDPGCHTRBQSFDBSV

Truncation and formatting

FunctionDescriptionBackends
DATE_TRUNC()Returns the given date or timestamp truncated to the given unit.DDPGCHTRBQSFDBSV
DATE_FORMAT()Returns a string from the given date or timestamp and format.DDPGCHTRBQSFDBSV
TO_ISO8601()Returns an ISO 8601 string from the given timestamp or interval.DDPGCHTRBQSFDBSV

Parsing and construction

FunctionDescriptionBackends
DATE_PARSE()Returns a timestamp from the given string and format.DDPGCHTRBQSFDBSV
FROM_ISO8601_TIMESTAMP()Returns a timestamp from the given ISO 8601 string.DDPGCHTRBQSFDBSV
MAKE_DATE()Builds a DATE from its year, month and day, given as three arguments or as a ROW.DDPGCHTRBQSFDBSV
MAKE_TIMESTAMP()Builds a TIMESTAMP from its calendar and clock components, given as six arguments or as a ROW.DDPGCHTRBQSFDBSV

Unix time conversion

FunctionDescriptionBackends
FROM_UNIXTIME()Returns a timestamp from the given unix timestamp (BIGINT representation of the number of seconds...DDPGCHTRBQSFDBSV
TO_UNIXTIME()Returns a unix timestamp (DECIMAL seconds since 1970-01-01 00:00:00 UTC) from the given date or...DDPGCHTRBQSFDBSV

Timezone conversion

FunctionDescriptionBackends
LOCAL_TO_UTC()Converts a local clock time (TIMESTAMPTZ) in the given zone to a UTC TIMESTAMP.DDPGCHTRBQSFDBSV
UTC_TO_LOCAL()Converts a UTC TIMESTAMP to the local clock time in the given timezone (TIMESTAMPTZ).DDPGCHTRBQSFDBSV

Interval operations

FunctionDescriptionBackends
MAKE_INTERVAL()Builds an INTERVAL from a ROW of duration components.DDPGCHTRBQSFDBSV
FROM_ISO8601_INTERVAL()Returns an interval from the given ISO 8601 duration string.DDPGCHTRBQSFDBSV
INTERVAL_PARSE()Returns an interval from the given duration string.DDPGCHTRBQSFDBSV
INTERVAL_TO_MS()Returns the truncated number of milliseconds in the given interval.DDPGCHTRBQSFDBSV
UNSAFE_NATIVE()Returns the value an INTERVAL is stored as on the backend, instead of its canonical text.DDPGCHTRBQSFDBSV
TO_ISO8601()Returns an ISO 8601 duration string from the given interval.DDPGCHTRBQSFDBSV
MULTIPLY()Scales an interval by an integer factor.DDPGCHTRBQSFDBSV

Json

FunctionDescriptionBackends
JSON_PARSE()Returns the given string as a JSON expression.DDPGCHTRBQSFDBSV
JSON_PARSE_AS()Returns the value of a JSON expression represented as a string in the given type.DDPGCHTRBQSFDBSV
JSON_EXTRACT()Returns the value of the given JSON path in the given JSON expression.DDPGCHTRBQSFDBSV
JSON_EXTRACT_SCALAR()Returns the scalar value of the given JSON path in the given JSON expression.DDPGCHTRBQSFDBSV
JSON_FORMAT()Returns the given JSON expression as a string.DDPGCHTRBQSFDBSV
JSON_ARRAY_COUNT()Returns the number of elements in a JSON array.DDPGCHTRBQSFDBSV
JSON_KEYS()Returns the keys of a JSON object as an array of strings.DDPGCHTRBQSFDBSV
JSON_TYPE()Returns the type of a JSON value as a string.DDPGCHTRBQSFDBSV

Array

Element Access

FunctionDescriptionBackends
ELEMENT_AT_POS()Returns the element at the specified position in an array.DDPGCHTRBQSFDBSV
ELEMENTS_AT_POS()Returns the elements at multiple specified positions in an array.DDPGCHTRBQSFDBSV
SLICE_LEN()Returns a slice of an array using start:length:step semantics.DDPGCHTRBQSFDBSV
SLICE_END()Returns the slice of an array or a string from a start index to an end index (inclusive).DDPGCHTRBQSFDBSV

Search And Lookup

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

Filtering And Transformation

FunctionDescriptionBackends
ARRAY_SORT()Returns the sorted version of an array.DDPGCHTRBQSFDBSV
ARRAY_REVERSE()Returns the reverse of an array.DDPGCHTRBQSFDBSV
ARRAY_ENUMERATE()Returns an array of rows pairing each 1-based position with the corresponding element.DDPGCHTRBQSFDBSV
ARRAY_ENUMERATE_FLATTEN()Returns an array of rows pairing each 1-based position with the flattened fields of the...DDPGCHTRBQSFDBSV
ARRAY_ROTATE()Returns a new array whose elements are rotated circularly; positive amounts shift left, negative...DDPGCHTRBQSFDBSV
NGRAMS()Returns adjacent n-element sub-sequences (n-grams) sliding across the input array.DDPGCHTRBQSFDBSV
ARRAY_DISTINCT()Returns an array with distinct elements, in order of first occurrence.DDPGCHTRBQSFDBSV
ARRAY_REMOVE()Returns an array with all occurrences of the specified element removed.DDPGCHTRBQSFDBSV
FLATTEN()Flattens a nested array structure into a single-level array.DDPGCHTRBQSFDBSV

Set Operations

FunctionDescriptionBackends
ARRAY_UNION()Returns the union of two arrays, keeping the first occurrence of each element.DDPGCHTRBQSFDBSV
ARRAY_INTERSECT()Returns the intersection of two arrays using set semantics.DDPGCHTRBQSFDBSV
ARRAY_EXCEPT()Returns the difference of two arrays using set semantics.DDPGCHTRBQSFDBSV
ARRAYS_OVERLAP()Returns TRUE if any elements are common between the two arrays.DDPGCHTRBQSFDBSV

Aggregation And Statistics

FunctionDescriptionBackends
ARRAY_COUNT()Returns the number of elements in an array.DDPGCHTRBQSFDBSV
ARRAY_SUM()Returns the sum of all numeric elements in an array.DDPGCHTRBQSFDBSV
ARRAY_PRODUCT()Returns the product of all numeric elements in an array as a DOUBLE.DDPGCHTRBQSFDBSV
ARRAY_MEDIAN()Returns the statistical median of numeric array elements as a DOUBLE.DDPGCHTRBQSFDBSV
ARRAY_STDDEV_POP()Returns the population standard deviation (divide by N) of numeric array elements as a DOUBLE.DDPGCHTRBQSFDBSV
ARRAY_STDDEV_SAMP()Returns the sample standard deviation (divide by N-1) of numeric array elements as a DOUBLE.DDPGCHTRBQSFDBSV
ARRAY_VAR_POP()Returns the population variance (divide by N) of numeric array elements as a DOUBLE.DDPGCHTRBQSFDBSV
ARRAY_VAR_SAMP()Returns the sample variance (divide by N-1) of numeric array elements as a DOUBLE.DDPGCHTRBQSFDBSV
ARRAY_AVG()Returns the arithmetic mean (average) of all numeric elements in an array.DDPGCHTRBQSFDBSV
ARRAY_MIN()Returns the smallest value in an array using natural ordering.DDPGCHTRBQSFDBSV
ARRAY_MAX()Returns the largest value in an array using natural ordering.DDPGCHTRBQSFDBSV
ARRAY_HISTOGRAM()Returns a frequency histogram of values in an array as an array of value-count pairs.DDPGCHTRBQSFDBSV

Boolean Operations

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

Array Combination

FunctionDescriptionBackends
ARRAY_CONCAT(...)Concatenates multiple arrays into a single combined array with optional deduplication.DDPGCHTRBQSFDBSV
COMBINATIONS()Returns all 2-element sub-groups of the input array as an array of 2-element arrays.DDPGCHTRBQSFDBSV
PERMUTATIONS()Returns all ordered 2-element selections from the input array as an array of 2-element arrays.DDPGCHTRBQSFDBSV

Array Generation

FunctionDescriptionBackends
REPEAT()Creates an array by repeating an element a specified number of times.DDPGCHTRBQSFDBSV
SEQUENCE()Generates an inclusive array from start to stop. Accepts integers with an optional step (default...DDPGCHTRBQSFDBSV

String Conversion

FunctionDescriptionBackends
ARRAY_JOIN()Joins the elements of an array into a single string using a specified delimiter.DDPGCHTRBQSFDBSV

Vector Operations

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

Row

FunctionDescriptionBackends
MERGE(...)Merges multiple row structures into a single row with combined fieldsDDPGCHTRBQSFDBSV

Array Of Rows

Indexing

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

Other

FunctionDescriptionBackends
EXTRACT(...)Returns the extracted fields from the given expression.DDPGCHTRBQSFDBSV
UNWRAP()Returns the first field values from an array of single-field rows as a simple array.DDPGCHTRBQSFDBSV
UNWRAP_ONE()Returns the value of the first field of the first element in an array of single-field rows.DDPGCHTRBQSFDBSV
ZIP(...)Combines multiple arrays into a single array of structured rows with named fields.DDPGCHTRBQSFDBSV
ARRAY_MERGE(...)Merges multiple arrays of rows element-wise into a single array of combined rows, with optional...DDPGCHTRBQSFDBSV
CARRY(...)Carries one or more scalar values into each row of an array of rows, adding them as new fieldsDDPGCHTRBQSFDBSV
EXTEND(...)Adds computed feature fields to a base row or array of rows with field bindingsDDPGCHTRBQSFDBSV
TRANSFORMTransforms an array of rows using a subquery with optional METHODDDPGCHTRBQSFDBSV
RECURSE(...)Produces an array of rows by iterating a seed ROW, optionally traversing entity relationshipsDDPGCHTRBQSFDBSV

Group By

Numeric

FunctionDescriptionBackends
SUM() GROUP BY ...Returns the sum of the values in the group.DDPGCHTRBQSFDBSV
AVG() GROUP BY ...Returns the average of the values in the group.DDPGCHTRBQSFDBSV
MAX() GROUP BY ...Returns the maximum value in the group.DDPGCHTRBQSFDBSV
MIN() GROUP BY ...Returns the minimum value in the group.DDPGCHTRBQSFDBSV
PRODUCT() GROUP BY ...Returns the product of the numeric values in the group.DDPGCHTRBQSFDBSV
BIT_AND() GROUP BY ...Returns the bitwise AND of all integer values in the group.DDPGCHTRBQSFDBSV
BIT_OR() GROUP BY ...Returns the bitwise OR of all integer values in the group.DDPGCHTRBQSFDBSV
BIT_XOR() GROUP BY ...Returns the bitwise XOR of all integer values in the group.DDPGCHTRBQSFDBSV

Counting

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

Boolean

FunctionDescriptionBackends
BOOL_AND() GROUP BY ...Returns TRUE if all values in the group are true.DDPGCHTRBQSFDBSV
BOOL_OR() GROUP BY ...Returns TRUE if any value in the group is true.DDPGCHTRBQSFDBSV
EXISTS() GROUP BY ...Returns TRUE if the group has at least one row (that passes the FILTER).DDPGCHTRBQSFDBSV

Collection

FunctionDescriptionBackends
ANY_VALUE() GROUP BY ...Returns a value of the group: the minimum in value order.DDPGCHTRBQSFDBSV
ARRAY_AGG() GROUP BY ...Returns an array of the values in the group.DDPGCHTRBQSFDBSV
MIN_BY() GROUP BY ...Returns the minimum value in the group by the given expression.DDPGCHTRBQSFDBSV
MAX_BY() GROUP BY ...Returns the maximum value in the group by the given expression.DDPGCHTRBQSFDBSV
STRING_AGG() GROUP BY ...Concatenates string values in the group, separated by the given delimiter; optional inner ORDER BY...DDPGCHTRBQSFDBSV

Statistical

FunctionDescriptionBackends
STDDEV_POP() GROUP BY ...Returns the population standard deviation of the values in the group.DDPGCHTRBQSFDBSV
STDDEV_SAMP() GROUP BY ...Returns the sample standard deviation of the values in the group.DDPGCHTRBQSFDBSV
VAR_POP() GROUP BY ...Returns the population variance of the values in the group.DDPGCHTRBQSFDBSV
VAR_SAMP() GROUP BY ...Returns the sample variance of the values in the group.DDPGCHTRBQSFDBSV
CORR() GROUP BY ...Returns the Pearson correlation coefficient between two expressions.DDPGCHTRBQSFDBSV
COVAR_POP() GROUP BY ...Returns the population covariance between two expressions.DDPGCHTRBQSFDBSV
COVAR_SAMP() GROUP BY ...Returns the sample covariance between two expressions.DDPGCHTRBQSFDBSV
REGR_SLOPE() GROUP BY ...Returns the slope of the linear regression line fitted to (x, y) pairs.DDPGCHTRBQSFDBSV
REGR_INTERCEPT() GROUP BY ...Returns the y-intercept of the linear regression line fitted to (x, y) pairs.DDPGCHTRBQSFDBSV
REGR_R2() GROUP BY ...Returns the coefficient of determination (R²) of the linear regression.DDPGCHTRBQSFDBSV
APPROX_PERCENTILE() GROUP BY ...Returns the approximate value at the given percentile.DDPGCHTRBQSFDBSV
MEDIAN() GROUP BY ...Returns the median of the values in the group as DOUBLE.DDPGCHTRBQSFDBSV
QUANTILE_CONT() GROUP BY ...Returns the continuous quantile of the group at the given probability in (0, 1); result type is...DDPGCHTRBQSFDBSV
QUANTILE_DISC() GROUP BY ...Returns an element from the group at the given discrete quantile; result type matches the...DDPGCHTRBQSFDBSV

Window Function

Numeric

FunctionDescriptionBackends
SUM() OVER ...Returns the sum of values in the window frame.DDPGCHTRBQSFDBSV
AVG() OVER ...Returns the average of values in the window frame.DDPGCHTRBQSFDBSV
MIN() OVER ...Returns the minimum value in the window frame.DDPGCHTRBQSFDBSV
MAX() OVER ...Returns the maximum value in the window frame.DDPGCHTRBQSFDBSV
PRODUCT() OVER ...Returns the product of values in the window frame.DDPGCHTRBQSFDBSV
BIT_AND() OVER ...Returns the bitwise AND of integer values in the window frame.DDPGCHTRBQSFDBSV
BIT_OR() OVER ...Returns the bitwise OR of integer values in the window frame.DDPGCHTRBQSFDBSV
BIT_XOR() OVER ...Returns the bitwise XOR of integer values in the window frame.DDPGCHTRBQSFDBSV

Counting

FunctionDescriptionBackends
COUNT() OVER ...Returns the count of rows in the window frame.DDPGCHTRBQSFDBSV
COUNT_IF() OVER ...Returns the count of rows where the condition is true in the window frame.DDPGCHTRBQSFDBSV
APPROX_DISTINCT() OVER ...Returns the approximate number of distinct values in the window frame.DDPGCHTRBQSFDBSV

Boolean

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

Numbering

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

Offset

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

Collection

FunctionDescriptionBackends
ANY_VALUE() OVER ...Returns a non-null value of the window frame: the minimum in value order, NULL if there is none.DDPGCHTRBQSFDBSV
ARRAY_AGG() OVER ...Returns an array of all values in the window frame.DDPGCHTRBQSFDBSV
MIN_BY() OVER ...Returns the value of the first expression corresponding to the minimum value of the second...DDPGCHTRBQSFDBSV
MAX_BY() OVER ...Returns the value of the first expression corresponding to the maximum value of the second...DDPGCHTRBQSFDBSV
STRING_AGG() OVER ...Concatenates string values in the window frame in order up to the current row, separated by the...DDPGCHTRBQSFDBSV

Statistical

FunctionDescriptionBackends
STDDEV_POP() OVER ...Returns the population standard deviation over the window frame.DDPGCHTRBQSFDBSV
STDDEV_SAMP() OVER ...Returns the sample standard deviation over the window frame.DDPGCHTRBQSFDBSV
VAR_POP() OVER ...Returns the population variance over the window frame.DDPGCHTRBQSFDBSV
VAR_SAMP() OVER ...Returns the sample variance over the window frame.DDPGCHTRBQSFDBSV
CORR() OVER ...Returns the Pearson correlation coefficient over the window frame.DDPGCHTRBQSFDBSV
COVAR_POP() OVER ...Returns the population covariance over the window frame.DDPGCHTRBQSFDBSV
APPROX_PERCENTILE() OVER ...Returns the approximate value at the given percentile in the window frame.DDPGCHTRBQSFDBSV
MEDIAN() OVER ...Returns the median of values in the window frame as DOUBLE.DDPGCHTRBQSFDBSV
QUANTILE_CONT() OVER ...Returns the continuous quantile of the window at the given probability; result type is DOUBLE.DDPGCHTRBQSFDBSV
QUANTILE_DISC() OVER ...Returns the discrete quantile of the window at the given probability; result type matches the value...DDPGCHTRBQSFDBSV
COVAR_SAMP() OVER ...Returns the sample covariance over the window frame.DDPGCHTRBQSFDBSV
REGR_SLOPE() OVER ...Returns the slope of the linear regression line over the window frame.DDPGCHTRBQSFDBSV
REGR_INTERCEPT() OVER ...Returns the y-intercept of the linear regression line over the window frame.DDPGCHTRBQSFDBSV
REGR_R2() OVER ...Returns the coefficient of determination (R²) over the window frame.DDPGCHTRBQSFDBSV

Business

Time Travel

FunctionDescriptionBackends
ROW_AT_TIME()Returns the row of a history (slowly changing dimension) in effect at the given point in time.DDPGCHTRBQSFDBSV
ROWS_AT_TIME()Returns the rows of a history alive at the given point in time.DDPGCHTRBQSFDBSV

Growth Accounting

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

Experimentation

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

Simulations

FunctionDescriptionBackends
SAMPLE_UNIFORM()Returns a value uniformly chosen between two bounds based on the given hashing key.DDPGCHTRBQSFDBSV
SAMPLE_GAUSSIAN()Returns a value chosen from a normal distribution between two bounds based on the given hashing key.DDPGCHTRBQSFDBSV
SAMPLE_VALUE(...)Returns a value from the given array of values and proportions based on the given hashing key.DDPGCHTRBQSFDBSV
SAMPLE_BOOL()Returns the discrete event (true or false) with the given probability based on the given hashing...DDPGCHTRBQSFDBSV
SAMPLE_EXPONENTIAL()Returns a value drawn from an exponential distribution with the given rate, based on the given...DDPGCHTRBQSFDBSV
SAMPLE_POISSON()Returns an integer drawn from a Poisson distribution with the given rate, based on the given...DDPGCHTRBQSFDBSV
SAMPLE_LOGNORMAL()Returns a value drawn from a log-normal distribution, clamped to [lower, upper], based on the given...DDPGCHTRBQSFDBSV
SAMPLE_GEOMETRIC()Returns the number of trials until first success, drawn from a geometric distribution, based on the...DDPGCHTRBQSFDBSV
SAMPLE_WEIBULL()Returns a value drawn from a Weibull distribution based on the given hashing key.DDPGCHTRBQSFDBSV

Metadata

FunctionDescriptionBackends
KEYSET()Returns a reference to a keyset.DDPGCHTRBQSFDBSV
KEYSET_GROUP()Defines an ordered set of interchangeable keysets.DDPGCHTRBQSFDBSV
PREPARED_STATEMENT()Returns a reference to a prepared statement of the given feature with the given inputs.DDPGCHTRBQSFDBSV
LOGGER()Logs the calls of a prepared statement to a sink, row by row, after each response is sent.DDPGCHTRBQSFDBSV
SINK()Where a LOGGER or a HOOK writes: the scheme of the DSN names the product. Loggers write cold sinks...DDPGCHTRBQSFDBSV
HOOK()Runs a prepared statement on each record of a stream, or after each hook run of a prepared...DDPGCHTRBQSFDBSV
TYPEOF()Returns the type of the given expression in FeatureQL.DDPGCHTRBQSFDBSV
DESCRIBE()Returns catalog and type metadata for an expression as a typed ROW.DDPGCHTRBQSFDBSV
SQLTYPEOF()Returns the name of the translated storage type for the expression (after FeatureQL is lowered for...DDPGCHTRBQSFDBSV
VERSION()Returns registry version; reload time is set only on a dev workstation.DDPGCHTRBQSFDBSV
SQLVERSION()Returns the active SQL dialect name and the backend database version.DDPGCHTRBQSFDBSV

Metaprogramming

Non Deterministic

FunctionDescriptionBackends
CURRENT_TIMESTAMP()Returns the current date and time.DDPGCHTRBQSFDBSV
RANDOM()Returns a random number in the range 0.0 <= x < 1.0DDPGCHTRBQSFDBSV

Other

FunctionDescriptionBackends
EVAL_CONST()Returns the result of evaluating a constant formula as a literal.DDPGCHTRBQSFDBSV

Geospatial

Constructor

FunctionDescriptionBackends
ST_GEOMPOINT()Creates a GEOMETRY point from x and y coordinates.DDPGCHTRBQSFDBSV
ST_GEOGPOINT()Creates a GEOGRAPHY point from longitude and latitude coordinates in WGS84.DDPGCHTRBQSFDBSV
ST_GEOMFROMTEXT()Creates a GEOMETRY value from a WKT (Well Known Text) string.DDPGCHTRBQSFDBSV
ST_GEOGFROMTEXT()Creates a GEOGRAPHY value from a WKT (Well Known Text) string. Coordinates are interpreted as...DDPGCHTRBQSFDBSV
ST_MAKELINE()Creates a LINESTRING from two geometry or geography inputs.DDPGCHTRBQSFDBSV
ST_MAKEPOLYGON()Creates a POLYGON from a closed LineString shell.DDPGCHTRBQSFDBSV
ST_COLLECT()Combines two geometries or geographies into a collection without dissolving boundaries.DDPGCHTRBQSFDBSV
ST_GEOMFROMWKB()Creates a GEOMETRY value from a WKB (Well Known Binary) byte string.DDPGCHTRBQSFDBSV
ST_GEOGFROMWKB()Creates a GEOGRAPHY value from a WKB (Well Known Binary) byte string. Coordinates are interpreted...DDPGCHTRBQSFDBSV
ST_GEOMFROMGEOJSON()Creates a GEOMETRY value from a GeoJSON string.DDPGCHTRBQSFDBSV
ST_GEOGFROMGEOJSON()Creates a GEOGRAPHY value from a GeoJSON string. Coordinates are interpreted as lon/lat in WGS84.DDPGCHTRBQSFDBSV
ST_TOGEOGRAPHY()Casts a GEOMETRY to GEOGRAPHY, reinterpreting coordinates as lon/lat in WGS84 without reprojection.DDPGCHTRBQSFDBSV
ST_TOGEOMETRY()Casts a GEOGRAPHY to GEOMETRY, reinterpreting the WGS84 lon/lat coordinates as planar x/y without...DDPGCHTRBQSFDBSV

Serialization

FunctionDescriptionBackends
ST_ASTEXT()Returns the WKT (Well Known Text) representation of a geometry or geography.DDPGCHTRBQSFDBSV
ST_ASGEOJSON()Returns the GeoJSON representation of a geometry or geography.DDPGCHTRBQSFDBSV
ST_ASWKB()Returns the WKB (Well Known Binary) representation of a geometry or geography.DDPGCHTRBQSFDBSV

Measurement

FunctionDescriptionBackends
ST_DISTANCE()Returns the minimum distance between two geometries or geographies.DDPGCHTRBQSFDBSV
ST_AREA()Returns the area of a geometry or geography.DDPGCHTRBQSFDBSV
ST_LENGTH()Returns the length of a linear geometry or geography.DDPGCHTRBQSFDBSV
ST_PERIMETER()Returns the perimeter of an areal geometry or geography.DDPGCHTRBQSFDBSV
ST_AZIMUTH()Returns the azimuth angle in radians from point A to point B, measured clockwise from north...DDPGCHTRBQSFDBSV

Predicate

FunctionDescriptionBackends
ST_INTERSECTS()Returns TRUE if two geometries or geographies share any portion of space.DDPGCHTRBQSFDBSV
ST_CONTAINS()Returns TRUE if geometry/geography A fully contains geometry/geography B.DDPGCHTRBQSFDBSV
ST_WITHIN()Returns TRUE if geometry/geography A is fully within geometry/geography B.DDPGCHTRBQSFDBSV
ST_DWITHIN()Returns TRUE if the distance between two geometries or geographies is less than or equal to a...DDPGCHTRBQSFDBSV
ST_EQUALS()Returns TRUE if two geometries or geographies represent the same point set.DDPGCHTRBQSFDBSV
ST_DISJOINT()Returns TRUE if two geometries or geographies do not share any space.DDPGCHTRBQSFDBSV
ST_TOUCHES()Returns TRUE if two geometries share boundary points but no interior points.DDPGCHTRBQSFDBSV
ST_CROSSES()Returns TRUE if two geometries have some but not all interior points in common.DDPGCHTRBQSFDBSV
ST_OVERLAPS()Returns TRUE if two geometries of the same dimension have overlapping interiors.DDPGCHTRBQSFDBSV

Accessor

FunctionDescriptionBackends
ST_X()Returns the X coordinate of a point (or longitude for geography).DDPGCHTRBQSFDBSV
ST_Y()Returns the Y coordinate of a point (or latitude for geography).DDPGCHTRBQSFDBSV
ST_GEOMETRYTYPE()Returns the OGC type name of a geometry or geography as a string.DDPGCHTRBQSFDBSV
ST_NUMPOINTS()Returns the total number of vertices in a geometry or geography.DDPGCHTRBQSFDBSV
ST_NUMGEOMETRIES()Returns the number of sub geometries in a collection, or 1 for singular geometries.DDPGCHTRBQSFDBSV
ST_DIMENSION()Returns the topological dimension of a geometry or geography.DDPGCHTRBQSFDBSV
ST_ISEMPTY()Returns TRUE if a geometry or geography is empty.DDPGCHTRBQSFDBSV
ST_ISVALID()Returns TRUE if a geometry is topologically valid (no self intersections, proper ring closure,...DDPGCHTRBQSFDBSV
ST_SRID()Returns the SRID (Spatial Reference ID) of a geometry.DDPGCHTRBQSFDBSV
ST_ISCLOSED()Returns TRUE if a geometry is closed (start point equals end point for lines; always TRUE for...DDPGCHTRBQSFDBSV
ST_STARTPOINT()Returns the first vertex of a LineString.DDPGCHTRBQSFDBSV
ST_ENDPOINT()Returns the last vertex of a LineString.DDPGCHTRBQSFDBSV
ST_ISSIMPLE()Returns TRUE if a geometry has no anomalous geometric points such as self-intersections or...DDPGCHTRBQSFDBSV
ST_GEOMPOINTN()Returns the Nth vertex of a LineString (1-indexed).DDPGCHTRBQSFDBSV
ST_ISPOINT()Returns TRUE if the geometry or geography is a Point.DDPGCHTRBQSFDBSV
ST_EXTERIORRING()Returns the outer ring of a Polygon as a LineString.DDPGCHTRBQSFDBSV
ST_ISLINE()Returns TRUE if the geometry or geography is a LineString.DDPGCHTRBQSFDBSV
ST_ISPOLYGON()Returns TRUE if the geometry or geography is a Polygon.DDPGCHTRBQSFDBSV
ST_NUMINTERIORRINGS()Returns the number of interior rings (holes) in a Polygon.DDPGCHTRBQSFDBSV
ST_INTERIORRINGN()Returns the Nth interior ring (hole) of a Polygon as a LineString (1-indexed).DDPGCHTRBQSFDBSV
ST_ISCOLLECTION()Returns TRUE if the geometry or geography is a Multi* or GeometryCollection.DDPGCHTRBQSFDBSV
ST_GEOMETRYN()Returns the Nth sub-geometry from a geometry collection (1-indexed).DDPGCHTRBQSFDBSV

Transformation

FunctionDescriptionBackends
ST_CENTROID()Returns the geometric center of mass (centroid) of a geometry.DDPGCHTRBQSFDBSV
ST_BUFFER()Returns a geometry that represents all points within a given distance of the input.DDPGCHTRBQSFDBSV
ST_ENVELOPE()Returns the bounding box of a geometry as a polygon.DDPGCHTRBQSFDBSV
ST_CONVEXHULL()Returns the convex hull of a geometry.DDPGCHTRBQSFDBSV
ST_SIMPLIFY()Returns a simplified version of a geometry using the Douglas Peucker algorithm.DDPGCHTRBQSFDBSV
ST_INTERSECTION()Returns the geometry/geography representing the point set intersection of two inputs.DDPGCHTRBQSFDBSV
ST_UNION()Returns the geometry/geography representing the point set union of two inputs.DDPGCHTRBQSFDBSV
ST_DIFFERENCE()Returns the geometry/geography representing the point set difference of A minus B.DDPGCHTRBQSFDBSV
ST_SYMDIFFERENCE()Returns the geometry representing the point set symmetric difference of two inputs (union minus...DDPGCHTRBQSFDBSV
ST_REVERSE()Returns a geometry with the vertex order of each component reversed.DDPGCHTRBQSFDBSV
ST_SNAP_TO_GRID()Snaps all vertices of a geometry to a uniform grid with the given cell size.DDPGCHTRBQSFDBSV
ST_SETSRID()Sets the SRID on a geometry without modifying or reprojecting coordinates.DDPGCHTRBQSFDBSV
ST_TRANSFORM()Reprojects a geometry from its current SRID to a target SRID.DDPGCHTRBQSFDBSV
ST_DUMP()Explodes a Multi* or GeometryCollection into an array of its component geometries.DDPGCHTRBQSFDBSV

Aggregation

FunctionDescriptionBackends
ST_UNION_AGG()Aggregate function that dissolves all geometries in a group into a single geometry.DDPGCHTRBQSFDBSV
ST_COLLECT_AGG()Aggregate function that collects all geometries in a group into a single GeometryCollection without...DDPGCHTRBQSFDBSV
ST_EXTENT()Aggregate function that returns the bounding box of all geometries in a group as a polygon.DDPGCHTRBQSFDBSV

Summary
Showing 432 of 427 functions across 19 of 19 categories.

This documentation is automatically generated from the FeatureMesh registry.