Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.ocient.com/llms.txt

Use this file to discover all available pages before exploring further.

Function NameCategory NameFunction Description
ABSMath FunctionsReturns the absolute value of a specified floating-point number.
ABSMatrix FunctionsReturns the magnitude of one-dimensional matrix or vector.
ACOSMath FunctionsReturns the inverse cosine of a specified floating-point number.
ACOSHMath FunctionsReturns the hyperbolic arc-cosine of a specified floating-point number.
ACCURACY_SCOREAggregate FunctionsReturns the fraction of predictions that match the actual class labels.
ADD_MONTHSDate and Time FunctionsAdds the specified number of months to the date.
ANY_VALUEAggregate FunctionsReturns an arbitrary, non-NULL value from the input column.
APPROX_COUNT_DISTINCTAggregate FunctionsApproximate distinct count by using hyper-log-log (95% confidence interval that the value is within 4.5%).
APPROX_SUMAggregate FunctionsAllows the aggregation engine to use a faster, non-deterministic ordering to summate floating-point columns.
ARRAY[]Array Functions-compliant constructor. The type of the array is deduced from the elements.
ARRAY_AGGAggregate FunctionsReturns an array containing every row from the expression.
ARRAY_APPENDArray FunctionsAdd value to the back of an array.
ARRAY_ARGMAXArray FunctionsReturns the corresponding argmax of the array as a BIGINT index.
ARRAY_ARGMINArray FunctionsReturns the corresponding argmin of the array as a BIGINT index.
ARRAY_CATArray FunctionsConcatenate 2 arrays into a new one.
ARRAY_CAT_DISTINCTArray FunctionsConcatenates two or more arrays in the order of the input arguments.
ARRAY_CAPSpecial Data Pipeline Transformation FunctionsRestrict the length of an array to a maximum number of elements.
ARRAY_COMPACTSpecial Data Pipeline Transformation FunctionsRemoves NULL values from the array.
ARRAY_CONCAT_AGGAggregate FunctionsReturns an array that concatenates arrays across rows.
ARRAY_CONTAINSSpecial Data Pipeline Transformation FunctionsReturns true if the array contains the specified value.
ARRAY_DISTINCTArray FunctionsRemoves duplicates from an array while preserving the first occurrence order.
ARRAY_LENGTHArray FunctionsReturn the number of elements of a given array.
ARRAY_MAXArray FunctionsReturns the corresponding maximum of the array.
ARRAY_MINArray FunctionsReturns the corresponding minimum of the array.
ARRAY_POSITIONArray FunctionsReturns the position of the first matching scalar in the array.
ARRAY_POSITIONSArray FunctionsReturns all elements stored in the right array and returns their respective positions in the left array.
ARRAY_PREPENDArray FunctionsAdd value to the front of an array.
ARRAY_REMOVEArray FunctionsRemove value from the array.
ARRAY_REPLACEArray FunctionsReplace value by another in an array.
ARRAY_SORTSpecial Data Pipeline Transformation FunctionsSort and return the input array based on the natural ordering of its elements or the specified Lambda function.
ARRAY_SUMArray FunctionsReturns the sum of the array. The array must be one-dimensional and contain numeric values. NULL values do not contribute to the sum.
ARRAY_TO_STRINGArray FunctionsConverts array to a list of elements separated by ‘delimiter’.
ASCIICharacter and Binary FunctionsReturns the ASCII code value of the leftmost character of the character value.
ASINMath FunctionsReturns the inverse sine of a specified floating-point number.
ASINHMath FunctionsReturns the hyperbolic arc-sine of a specified floating-point number.
ATANMath FunctionsReturns the inverse tangent of a specified floating-point number.
ATAN2Math FunctionsReturns the inverse tangent of two numeric, floating-point values.
ATANHMath FunctionsReturns the hyperbolic arc-tangent of a specified floating-point number.
AVGAggregate FunctionsAverage, or arithmetic mean, over the set.
BICDFMath FunctionsThe cumulative distribution function of the standard bivariate normal distribution.
BIGINTScalar Data Conversion FunctionsCasts the argument to a value of type bigint.
BINARYScalar Data Conversion FunctionsParses a hexadecimal string (such as 0x54ab) to create a binary value. Letters can be of either case.
BIPDFMath FunctionsThe probability density function of the standard bivariate normal distribution.
BIT_LENGTHCharacter and Binary FunctionsReturns the length of the character value in bits.
BITANDMath FunctionsAlias for the BITFUNC syntax BITFUNC('AND', x, y).
BITFUNCMath FunctionsPerforms a variety of bit operations. Can be any of these string literals: 'AND', 'OR', or 'XOR'.
BITNOTMath FunctionsReturns the bitwise negation of integral_x.
BITORMath FunctionsAlias for the BITFUNC syntax BITFUNC(‘OR’, x, y).
BITXORMath FunctionsAlias for the BITFUNC syntax BITFUNC(‘XOR’, x, y).
BOOLANDMath FunctionsAlias for the BOOLFUNC syntax BOOLFUNC(‘AND’, x, y).
BOOLEANScalar Data Conversion FunctionsParses a string to create a Boolean value. The string must contain either true or false. It is case-insensitive.
BOOLFUNCMath FunctionsPerforms a Boolean logical evaluation on arguments x and y. Can be any of these string literals: 'AND', 'OR', or 'XOR'.
BOOLNOTMath FunctionsReturns the logical negation of the BOOLFUNC function.
BOOLORMath FunctionsAlias for the BOOLFUNC syntax BOOLFUNC(‘OR’, x, y).
BOOLXORMath FunctionsAlias for the BOOLFUNC syntax BOOLFUNC(‘XOR’, x, y).
BTRIMCharacter and Binary FunctionsAlias for TRIM.
BYTEScalar Data Conversion FunctionsCasts the argument to a value of type byte.
CANCELQuery ManagementCancels a running query based on its specific query identifier.
CASE
Conditional FunctionsCASE operates similarly to conditional scripting in other programming languages, allowing it to function like an if / then / else statement or as a switch statement.
CASE WHEN

Special Data Pipeline Transformation FunctionsReturns the result value based on whether an expression is true.
CAST_TO_ARRAYArray FunctionsCasts the elements of the array to another type.
CAST_TO_TUPLETuple FunctionsConverts a tuple into another tuple of a different type.
CBRTMath FunctionsReturns the cube root of the numeric value x.
CDFMath FunctionsThe cumulative distribution function of the standard normal distribution. Returns the probability that a random sample is less than or equal to the specified value.
CEILMath FunctionsReturns the nearest integer greater than or equal to x.
CEILINGMath FunctionsAlias for CEIL.
CENTURYDate and Time FunctionsReturns the number of centuries.
CHARArray FunctionsConverts array to its string representation.
CHARScalar Data Conversion FunctionsCreates a string version of the numeric value.
CHARTuple FunctionsConverts a tuple to its string representation.
CHAR_LENGTHCharacter and Binary FunctionsAlias for LENGTH.
CHARACTER_LENGTHCharacter and Binary FunctionsAlias for LENGTH.
CHRCharacter and Binary FunctionsConverts an integer value to a string.
COALESCEConditional FunctionsEvaluates to the first argument that is not NULL, or NULL if all arguments are NULL.
COEFFICIENT_OF_DETERMINATIONAggregate FunctionsComputes the coefficient of determination (R²) between actual and predicted values.
COMMITSystem FunctionsReturns the most recent commit hash of the database to which the client is currently connected.
CONCATCharacter and Binary FunctionsConcatenates two values, which must both be either binary, hash, or string data types. This function is equivalent to the || operator.
CONFUSION_MATRIXAggregate FunctionsReturns a structured representation of the counts for every combination of actual and predicted class labels relative to a specified positive class.
CONVERT_LOCAL_TIMESTAMP_TO_UTCTime Zone FunctionsThe function converts a timestamp in a specified local time zone to the UTC time zone.
CONVERT_UTC_TIMESTAMP_TO_LOCALTime Zone FunctionsThe function converts a timestamp from the UTC time zone to a specified local time zone.
CORRAggregate FunctionsAlias for CORRELATION.
CORRELATIONAggregate FunctionsSample correlation.
CORRELATIONPAggregate FunctionsPopulation correlation.
COSMath FunctionsReturns the cosine of x.
COSHMath FunctionsReturns the hyperbolic cosine of x.
COTMath FunctionsReturns the cotangent of x.
COUNTAggregate FunctionsNumber of rows in the set.
COVAR_POPAggregate FunctionsAlias for COVARIANCEP.
COVAR_SAMPAggregate FunctionsAlias for COVARIANCE.
COVARIANCEAggregate FunctionsSample covariance.
COVARIANCEPAggregate FunctionsPopulation covariance.
CROSS_ENTROPY_LOSSArray FunctionsReturns the cross entropy loss of two arrays.
CROSS_ENTROPY_LOSSMatrix FunctionsReturns the cross entropy loss of two one-dimensional matrices or vectors.
CUME_DISTWindow Aggregate FunctionsReturns a number 0 < n 1 and can be used to calculate the percentage of values less than or equal to the current value in the group.
CURDATEDate and Time FunctionsAlias for CURRENT_DATE.
CURRENT_DATABASESystem FunctionsAlias for DATABASE.
CURRENT_DATEDate and Time FunctionsReturns the current date in the format YYYY-MM-DD.
CURRENT_GROUPSSystem FunctionsReturns the fully-qualified names of groups in the database.
CURRENT_NODESystem FunctionsReturns the name of the SQL Node where the current query executes. The name of the node corresponds to the name column in the sys.nodes system catalog table.
CURRENT_NODE_IDSystem FunctionsReturns the identifier of the SQL Node where the current query executes.
CURRENT_SCHEMASystem FunctionsReturns the name of the current schema.
CURRENT_SESSION_IDSystem FunctionsReturns the Universally Unique IDentifier (UUID) of the current session.
CURRENT_SYSTEMSystem FunctionsReturns the name of the system.
CURRENT_TIMEDate and Time FunctionsReturns the current time as a TIME value (e.g., hh:mm:ss.mm).
CURRENT_TIMESTAMPDate and Time FunctionsReturns the current date and time as a TIMESTAMP value (e.g., YYYY-MM-DD hh🇲🇲ss.mmm).
CURRENT_USERSystem FunctionsReturns the user for the current connection.
DATABASESystem FunctionsReturns the name of the database to which the client is currently connected.
DATEScalar Data Conversion FunctionsParses a string in the form ‘YYYY-MM-DD’ to create a date. Extra characters are ignored.
DATE_PARTDate and Time FunctionsAlias for EXTRACT.
DATE_TRUNCDate and Time FunctionsReturns the date or timestamp entered, truncated to the specified precision.
DATEADDDate and Time FunctionsAdds a specified number value (as a signed integer) to a specified date part of an input date value, and then returns that modified value.
DATEDIFFDate and Time FunctionsThis function returns an INT representing the difference between two date or time values in a specified date or time unit.
DAYDate and Time FunctionsAlias for DAY_OF_MONTH.
DAY_OF_MONTHDate and Time FunctionsExtracts the day-of-month portion of a timestamp or date as an integer.
DAY_OF_WEEKDate and Time FunctionsReturns an integer, in the range of 1 to 7, that represents the day of the week.
DAY_OF_YEARDate and Time FunctionsReturns an integer in the range 1 to 366 that represents the day of the year.
DAYSScalar Data Conversion FunctionsConverts an integral value to an interval value of type days to be used in date calculations.
DECADEDate and Time FunctionsThe decade is the year divided by 10.
DECIMALScalar Data Conversion FunctionsCasts the argument to a value of type decimal.
DEGREESMath FunctionsReturns the corresponding angle in degrees for x in radians.
DELTAWindow Aggregate FunctionsComputes the finite difference between successive values of expression under the specified ordering. This is a backwards difference, which means that, at degree one, the value for a given row is the difference between the value of expression for that row and the previous row.
DENSE_RANKWindow Aggregate FunctionsAssigns a number to each row in the result set with equal values having the same number. There will be no gaps between ranks.
DERIVATIVEWindow Aggregate FunctionsComputes the difference quotient between successive values of expression with respect to expression2.
DETMatrix FunctionsReturns the determinant of the matrix as a double.
DIVMath FunctionsReturns the result of x divided by y. If y is zero, returns NULL.
DOTMatrix FunctionsReturns dot product of two one-dimensional matrices/vectors.
DOUBLEScalar Data Conversion FunctionsCasts the argument to a value of type double.
DOWDate and Time FunctionsAlias for DAY_OF_WEEK.
DOYDate and Time FunctionsAlias for DAY_OF_YEAR.
EIGENMatrix FunctionsReturns eigenvalues and eigenvalues of a square matrix as a vector of pairs.
ELEMENT_ATSpecial Data Pipeline Transformation FunctionsReturns the element value of the array or tuple at the specified index.
ENDSWITHCharacter and Binary FunctionsReturns true if x ends with y and false otherwise.
EOMONTHDate and Time FunctionsReturns the last day of the timestamp or date.
EPOCHDate and Time FunctionsThe number of seconds after 1970-01-01 00:00:00 UTC.
ERFMath FunctionsThe error function is used for measurements that follow a normal distribution.
ERFCMath FunctionsThe complement of the error function. ERFC(x) = 1 - ERF(x).
EXPMath FunctionsReturns the exponential of x (e raised to the power of x).
EXPLODE_OUTERSpecial Data Pipeline Transformation FunctionsExpands a one-dimensional or multidimensional array into its elements with one element per row of output from the system.
EXTRACTDate and Time FunctionsExtract a component from a timestamp or date.
F1_SCOREAggregate FunctionsReturns the harmonic mean of precision and recall for a specified positive class.
FILTERSpecial Data Pipeline Transformation FunctionsFilters elements in an array based on the logic in a lambda expression.
FIRST_VALUEWindow Aggregate FunctionsReturns the first value in the ordered result set.
FLATTENSpecial Data Pipeline Transformation FunctionsTransforms an N-dimensional array into an N-1-dimensional array.
FLOATScalar Data Conversion FunctionsCasts the argument to a value of type float.
FLOORMath FunctionsReturns the nearest integer less than or equal to x.
FROBENIUSMatrix Functions and OperatorsReturns the Frobenius norm of a matrix.
GAMMAMath FunctionsGamma function.
GREATESTConditional FunctionsReturns the largest non-NULL value of all the arguments, or NULL if all the arguments are NULL.
HASHScalar Data Conversion FunctionsCreates a fixed length binary value, with length <length>, from a string, i.e. 0x1234abcd. Zero extended if the string does not have enough bytes, truncated if it has too many.
HEXBINXMath FunctionsReturns the x-coordinate of the center of the nearest hexagonal bin to the point (x, y).
HEXBINYMath FunctionsReturns the y-coordinate of the center of the nearest hexagonal bin to the point (x, y).
HINGE_LOSSArray FunctionsReturns the hinge loss of two arrays.
HINGE_LOSSMatrix FunctionsReturns the hinge loss of two one-dimensional matrices or vectors.
HLL_SKETCH_CREATEHyperLogLog FunctionsCreates an HLL sketch from the data on a specified aggregated column. Returns a HASH((2^log2k) + 8) data representation of the sketch that you can store in a separate column.
HLL_SKETCH_GET_ESTIMATEHyperLogLog FunctionsThe scalar function converts a sketch into a distinct count estimate of a sketch value. Returns the distinct count estimate as a BIGINT.
HLL_SKETCH_GET_ESTIMATE_BOUNDHyperLogLog FunctionsTakes a HLL_SKETCH column or an integral log2k literal value and returns the resulting bounding 95-percent confidence interval error proportion as a DOUBLE.
HLL_SKETCH_TO_STRINGHyperLogLog FunctionsThe HLL_SKETCH_TO_STRING scalar function takes a HLL_SKETCH column or value and returns a string summary of the sketch.
HLL_SKETCH_UNION (aggregate function)HyperLogLog FunctionsMerges multiple sketches in a single column into a unified sketch. All sketches must have the same precision. This function is an aggregate function and operates on a column.
HLL_SKETCH_UNION (scalar function)HyperLogLog FunctionsMerges two sketches into a new combined sketch. This function is a scalar function and operates row-wise. The scalar function merges two sketch columns with heterogeneous precisions into a sketch with the lower of the two precisions.
HOURDate and Time FunctionsExtracts the hour portion of a timestamp as an integer.
HOURSScalar Data Conversion FunctionsConverts an integral value to an interval value of type hours.
IDENTITY_MATRIXMatrix FunctionsReturns an identity matrix of the specified dimension.
IERFMath FunctionsThe inverse of the ERF error function.
IERFCMath FunctionsThe inverse of the complement of the error function.
IFSpecial Data Pipeline Transformation FunctionsReturns T if the expression X evaluates to true, or the function returns F if X evaluates to false.
IF_NULLConditional FunctionsAlias for COALESCE.
INITCAPCharacter and Binary FunctionsFor each word in the provided string, capitalize the first character if it is alphabetic.
INSTRCharacter and Binary FunctionsReturns the index position of the first occurrence where the character value char_substring appears in the character value char by ignoring case.
INTEGERScalar Data Conversion FunctionsCasts the argument to a value of type integer.
INVERSEMatrix FunctionsReturns inverse of a square, invertible matrix.
IPNetwork Type FunctionsCasts an IP data type from an IPV4 data type expression.
IPV4Network Type FunctionsCasts an IPV4 address from an IPV6 address.
ISDATEDate and Time FunctionsReturns TRUE if the input argument can be successfully cast to a date.
IS_IPV4Network Type FunctionsTests whether the database can convert the IP value to the IPV4 data type.
ISODOWDate and Time FunctionsExtracts the day of the week based on ISO 8601, which ranges from Monday (1) to Sunday (7).
JSON_EXTRACT_PATH_TEXTCharacter and Binary FunctionsReturns the value for the key-value pair referenced by a series of path elements in a JSON string.
KILLQuery ManagementCancels a running query based on its specific query identifier.
KURTOSISAggregate FunctionsThe sample over the set.
KURTOSISPAggregate FunctionsThe population over the set.
LAGWindow Aggregate FunctionsReturns the row, which is the specified number backward from the current row. Default is 1 if offset is omitted.
LAG_VECTORSData PreparationGroups lagged columns generated by the MULTI_LAGS or MULTI_LAGS_ZEROFILL functions into vector columns.
LAGSData PreparationGenerates a series of lagged columns for a single variable in one statement.
LAGS_ZEROFILLData PreparationGenerates lagged columns for a single variable and replaces NULL values with 0.
LAST_VALUEWindow Aggregate FunctionsReturns the last value in the ordered result set.
LCASECharacter and Binary FunctionsAlias for LOWER.
LEADWindow Aggregate FunctionsReturns the row, which is the specified number forward from the current row. Default is 1 if offset is omitted.
LEAKYRELUMath FunctionsReturns the leaky rectified linear unit function of x.
LEASTConditional FunctionsReturns the smallest non-NULL value of all arguments, or NULL if all arguments are NULL.
LEFTCharacter and Binary FunctionsReturn the number of characters in the string equal to the value integer. If the integer is negative, the function returns all but the last integer characters.
LEFT_SHIFTMath FunctionsReturns x shifted to the left by y bits.
LENGTHCharacter and Binary FunctionsFor character data types, this value is in terms of characters. For binary data types, this value is in terms of bytes.
LNMath FunctionsReturns the natural logarithm of x.
LOCATECharacter and Binary FunctionsAlias for POSITION. Returns the index position of the first occurrence of the character value substring in the character value string.
LOGMath FunctionsReturns the base 10 logarithm of x. The optional base argument specifies the numeral system to use. If unspecified, the function defaults to base 10.
LOG_GAMMAMath FunctionsThe natural logarithm of the absolute value of the gamma function.
LOG_LOSSArray FunctionsReturns the log loss of two arrays.
LOG_LOSSMatrix FunctionsReturns the log loss of two one-dimensional matrices or vectors.
LOG2Math FunctionsReturns the base 2 logarithm of x.
LOGITS_LOSSArray FunctionsReturns the logits loss of two arrays.
LOGITS_LOSSMatrix FunctionsReturns the logits loss of two one-dimensional matrices or vectors.
LOOKUPSpecial Data Pipeline Transformation FunctionsLook up and load data in an external data source.
LOWERCharacter and Binary FunctionsAlias for LCASE. Convert string to lowercase.
LPADCharacter and Binary FunctionsPad the input text to the specified length with the pad string on the left side.
LTRIMCharacter and Binary FunctionsRemoves leading blanks from the string value string.
LUPQ_DECOMPMatrix FunctionsReturns LUPQ decomposition of a square matrix A as a tuple of 4 matrices where PAQ = LU.
MAP_KEYSSpecial Data Pipeline Transformation FunctionsReturns the keys in the specified JSON string.
MAP_VALUESSpecial Data Pipeline Transformation FunctionsReturns the values in the specified JSON string.
MATRIX_DIMMatrix FunctionsReturns the dimensions of the specified matrix as a tuple of (row, col) integers.
MAKE_MATRIX_IXJMatrix FunctionsCreates an ixj matrix with elements e_00, , e_ij.
MAKEDATETIMEDate and Time FunctionsReturns a timestamp consisting of the specified date and time.
MATRIX_FROM_TEXTMatrix FunctionsCreates a matrix from the specified string.
MATRIX_TRACEMatrix FunctionsReturns trace of a square matrix as a double.
MAXAggregate FunctionsMaximum value in the specified column.
MD5Character and Binary FunctionsReturns the hexadecimal string (all lowercase) representing the md5 hash of char.
MEAN_ABSOLUTE_ERRORAggregate FunctionsReturns the mean absolute error (MAE) between actual and predicted values.
MEAN_ABSOLUTE_PERCENTAGE_ERRORAggregate FunctionsReturns the mean absolute percentage error (MAPE) between actual and predicted values.
METADATASpecial Data Pipeline Transformation FunctionsExtracts the metadata value for the specified key from available metadata for the pipeline.
MICROSECONDSScalar Data Conversion FunctionsConverts an integral value to an interval value of type microseconds.
MIDCharacter and Binary FunctionsAlias for SUBSTRING.
MILLISECONDDate and Time FunctionsExtracts the millisecond portion of a timestamp as an integer.
MILLISECONDSScalar Data Conversion FunctionsConverts an integral value to an interval value of type milliseconds.
MINAggregate FunctionsMinimum value in the specified column.
MINUTEDate and Time FunctionsExtracts the minute portion of a timestamp or date as an integer.
MINUTESScalar Data Conversion FunctionsConverts an integral value to an interval value of type minutes.
MODMath FunctionsReturns the remainder from x divided by y.
MONTHDate and Time FunctionsExtracts the month portion of a timestamp or date as an integer.
MONTH_NAMEDate and Time FunctionsReturns the calendar name in English of the month for the specified date.
MONTHS
Scalar Data Conversion FunctionsConverts an integral value to an interval value of type months to be used in date calculations.
MONTHS_BETWEENDate and Time FunctionsReturns the difference between the two dates or timestamps in months as a DOUBLE.
MSECSDate and Time FunctionsThe seconds field, including fractional parts. The function multiplies the seconds part of the value by 1,000.
MULTI_LAGSData PreparationGenerates lagged columns for multiple variables at once.
MULTI_LAGS_ZEROFILLData PreparationGenerates lagged columns for multiple variables and replaces NULL values with 0.
MURMUR3Conditional FunctionsReturns a 32-bit MurmurHash3 hash of the input value as an INTEGER data type.
NANOS_TO_TIMESTAMPDate and Time FunctionsConvert a number of nanoseconds into a timestamp equivalent to the duration after the epoch time.
NANOSECONDSScalar Data Conversion FunctionsConverts an integral value to an interval value of type nanoseconds.
NEXT_DAYDate and Time FunctionsReturns the closest date after a specified date that lies on a specific day of the week.
NOWDate and Time FunctionsAlias for CURRENT_TIMESTAMP.
NTH_VALUEWindow Aggregate FunctionsReturns the nth value in the ordered result set.
NULL_IFConditional FunctionsReturns the NULL value if two arguments are equal; otherwise, returns the first argument.
NULL_MATRIXMatrix FunctionsReturns a null matrix of the given (row, col) dimensions.
OCTET_LENGTHCharacter and Binary FunctionsReturns the length in bytes of a character or binary value.
PARSE_DELIMITED_ARRAYSpecial Data Pipeline Transformation FunctionsConverts a string of text data representing an array into a CHAR[].
PERCENT_RANKWindow Aggregate FunctionsThe value returned is 0 < n ≤ 1 and can be used to calculate the percentage of values less than the current group, excluding the highest value.
PERCENTILEWindow Aggregate FunctionsReturns the value that corresponds to the specified percentile (0 ≤ n ≤ 1) within the group.
PIMath FunctionsReturns the constant value of π.
PMODMath FunctionsReturns the smallest non-negative equivalence class of x % y.
POSITIONCharacter and Binary FunctionsAlias for LOCATE.
POWERMath FunctionsReturns x raised to the power of y.
PRECISION_SCOREAggregate FunctionsReturns the precision score for a specified positive class.
PROBITMath FunctionsThe inverse of the cumulative distribution function.
PRODUCTAggregate FunctionsProduct over the set.
QR_DECOMPMatrix FunctionsReturns QR decomposition of a matrix as a tuple of 2 matrices.
QUARTERDate and Time FunctionsReturns an integer between 1 and 4 that represents the quarter of the year in which the specified date falls.
RADIANSMath FunctionsReturns the corresponding angle in radians for x in degrees.
RANDMath FunctionsTakes no argument and returns a random DOUBLE value in the range [0, 1).
RAND_UUID
Other Functions and ExpressionsGenerates a random UUID value (version 4)
RANKWindow Aggregate FunctionsAssigns a number to each row in the result set with equal values having the same number. There can be gaps between ranks.
RATIO_TO_REPORTWindow Aggregate FunctionsComputes the ratio of a value to the sum of the set of values.
RECALL_SCOREAggregate FunctionsReturns the recall score for a specified positive class.
ROC_AUC_SCOREAggregate FunctionsReturns the area under the receiver operating characteristic (ROC) curve (AUC).
RECORD_UUID
Other Transformation FunctionsReturns string that represents a unique identifier for the record in a specified pipeline for a specified file_group or topic.
REDUCESpecial Data Pipeline Transformation FunctionsApplies a merge function to a starting value and all elements in the array, and then reduces the array to a single value. Optionally, specify a finish function for the returned single value.
REGEXP_COUNTCharacter and Binary FunctionsSearches a string for all occurrences of a regular expression pattern.
REGEXP_INSTRCharacter and Binary FunctionsSearches a string using a regular expression pattern and returns an integer representing the start position or end position of the substring that matches.
REGEXP_REPLACECharacter and Binary FunctionsSearches a string for all occurrences of a regular expression pattern.
REGEXP_SUBSTRCharacter and Binary FunctionsReturns one substring from a string that matches a specified regular expression pattern.
RELUMath FunctionsReturns the rectified linear unit function of x.
REPEATCharacter and Binary FunctionsRepeats the character value char a number of times equal to num.
REPLACE

Character and Binary FunctionsReplaces all occurrences of substr_to_remove in the character value string with substr_to_replace.
REVERSECharacter and Binary FunctionsReverse the input string.
RIGHTCharacter and Binary FunctionsReturn the number of trailing characters in the string equal to the value integer.
RIGHT_SHIFTMath FunctionsReturns x shifted to the right by y bits.
ROUNDDate and Time FunctionsReturns the specified date or timestamp, rounded to the specified precision.
ROUNDMath FunctionsReturns x rounded to the nearest integer.
ROW_NUMBERWindow Aggregate FunctionsAssigns a unique number to each row in the result set.
RPADCharacter and Binary FunctionsPad the input text to the specified length with the pad string on the right side.
RSUBSTRINGCharacter and Binary FunctionsReturns the substring from the right side of a string, based on a specified length.
RTRIMCharacter and Binary FunctionsRemoves leading blanks from the string value string.
SECONDDate and Time FunctionsExtracts the seconds portion of a timestamp as an integer.
SECONDSScalar Data Conversion FunctionsConverts an integral value to an interval value of type seconds.
SHA1Character and Binary FunctionsUses the [SHA-1](https://en.wikipedia.org/wiki/SHA-1#:~:text=In%20cryptography%2C%20SHA%2D1%20(,rendered%20as%2040%20hexadecimal%20digits.) cryptographic hash function to convert a string into a 40-character string representing the hexadecimal value of a 160-bit checksum.
SHOWSystem FunctionsThe SHOW function enables you to explore the database and its metadata for user-defined items.
SIGNMath FunctionsReturns the positive (+1), zero (0), or negative (-1) sign of x.
SINMath FunctionsReturns the sine of x.
SINHMath FunctionsReturns the hyperbolic sine of x.
SKEWAggregate FunctionsThe sample over the set.
SKEWPAggregate FunctionsComputes the population skewness over the set of values.
SMALLINTScalar Data Conversion FunctionsCasts the argument to a value of type smallint.
SOFTMAXArray FunctionsReturns the softmax of the array.
SOFTMAXMatrix FunctionsReturns the softmax of a one-dimensional matrix or vector.
SPACECharacter and Binary FunctionsReturns a string of repeated spaces equal to the number value, repeat.
SPLIT_PARTCharacter and Binary FunctionsSplit the value string based on the delimiter value. The function returns a substring from the split operation based on the index value (starting from 1).
SPLIT_TO_ARRAYCharacter and Binary FunctionsSplits a string into an array of substrings.
SQRTMath FunctionsReturns the square root of x.
SQUAREMath FunctionsReturns the square of x.
ST_ADDPOINTGeospatial Linestring FunctionAdds a POINT to the given LINESTRING at the specified 0-indexed location.
ST_ANGLEGeospatial Spatial MeasurementCalculates the angle between two lines.
ST_AREAGeospatial Spatial MeasurementReturns the area of the specified geospatial object in the specified unit of measurement.
ST_ASBINARYGeospatial Conversion FunctionsReturns the well-known binary (WKB) representation of the specified geography. Alias of ST_ASWKB.
ST_ASEWKTGeospatial Conversion FunctionsReturns a string that represents geographic coordinates of a specified POINT in the specified format.
ST_ASGEOJSONGeospatial Conversion FunctionsAlias of ST_ASBINARY.
ST_ASLATLONTEXTGeospatial Conversion FunctionsReturns the GeoJSON representation of the specified geography using the IETF standards.
ST_ASTEXTGeospatial Conversion FunctionsAlias of ST_ASTEXT.
ST_ASWKBGeospatial Conversion FunctionsAlias of ST_ASTEXT.
ST_ASWKTGeospatial Conversion FunctionsAlias of ST_ASWKT and ST_EWKT. Returns the WKT representation of the specified geography.
ST_AZIMUTHGeospatial Spatial MeasurementReturns the azimuth of the line from point1 to point2 in radians.
ST_BOUNDINGDIAGONALGeospatial Spatial OperatorsReturns the diagonal LINESTRING from the minimum point to the maximum point of the bounding box that ST_ENVELOPE returns.
ST_BUFFERGeospatial Spatial OperatorsReturns a geography that contains all points where the distance from the geography is less than or equal to the specified distance.
ST_CENTROIDGeospatial Point ConstructorsThe geographic center of mass is calculated by taking the average of all points on a three-dimensional sphere, projecting the resultant point onto the sphere, and converting it back to latitude and longitude coordinates.
ST_CLOSESTPOINTGeospatial Spatial OperatorsReturns the two-dimensional POINT of one specified geospatial object that is closest to a second specified geospatial object.
ST_CLUSTERDBSCANGeospatial Spatial RelationshipsReturns the cluster number for each input geography, based on a two-dimensional implementation of the density-based spatial clustering of applications with noise (DBSCAN) algorithm.
ST_CONTAINSGeospatial Spatial RelationshipsReturns TRUE if the first geographic argument, geo1, contains the second geographic argument, geo2.
ST_CONTAINSPROPERLYGeospatial Spatial RelationshipsReturns true if geo2 lies entirely in the interior of geo1, and does not intersect or touch the boundary or exterior points.
ST_CONVEXHULLGeospatial Spatial OperatorsThe convex hull is the smallest convex geometry that encloses the input geometry.
ST_COORDDIMGeospatial Attribute FunctionsAlias for ST_NDIMS or ST_NDIMENSION. Returns an INTEGER of the coordinate dimension of the specified geography.
ST_COVEREDBYGeospatial Spatial RelationshipsReturns TRUE if no POINT in geo1 is outside of geo2.
ST_COVERSGeospatial Spatial RelationshipsReturns TRUE if no POINT in geo2 is outside of geo1.
ST_CROSSESGeospatial Spatial RelationshipsReturns TRUE if two geospatial objects meet these criteria: The intersection of the geospatial interiors is not empty. The intersection is not equal to geo1 or geo2. Neither geospatial object is a single POINT.
ST_DIFFERENCEARRAYGeospatial Spatial OperatorsReturns an array containing any geospatial objects that are present in the first specified geospatial argument that are not found in the second geospatial argument.
ST_DIMENSIONGeospatial Attribute FunctionsReturns an INTEGER that represents the dimension of the specified geography.
ST_DISJOINTGeospatial Spatial RelationshipsReturns true if the specified geographies have no intersection, including boundaries. Both geographic arguments can be different types.
ST_DISTANCE
Geospatial Spatial MeasurementReturns the minimum distance between the specified arguments.
ST_DISTANCEGeospatial Spatiotemporal MeasurementReturns the two-dimensional interpolated minimum simultaneous distance between two LINESTRING-TIMESTAMP array pairs in the specified unit of measurement.
ST_DISTANCESPHEREGeospatial Spatial MeasurementReturns the minimum distance between the specified arguments using a spherical computation.
ST_DISTANCESPHEROIDGeospatial Spatial MeasurementReturns the minimum distance between the specified arguments using a spheroid computation.
ST_DWITHINGeospatial Spatial RelationshipsReturns TRUE if the geographies are within a specified distance in meters.
ST_ENDPOINTGeospatial Linestring FunctionReturns the endpoint of a specified LINESTRING. The returned value is a POINT.
ST_ENVELOPEGeospatial Spatial OperatorsReturns a POLYGON that represents the minimum bounding box for the specified geography.
ST_EQUALSGeospatial Spatial RelationshipsReturns TRUE if both geographies are spatially equal.
ST_EUCLIDEANDISTANCE3DGeospatial Spatial MeasurementReturns the minimum distance between two geospatial points with altitude values.
ST_EXPANDGeospatial Spatial OperatorsReturns the bounding box of a specified geospatial value, which is expanded by a specified length.
ST_EXTERIORRINGGeospatial Spatial OperatorsReturns a LINESTRING that represents the exterior ring of a provided POLYGON value.
ST_FLIPCOORDINATESGeospatial Spatial OperatorsReturns a new geographic object with the X and Y coordinates switched using the specified argument.
ST_FORCE2DGeospatial Spatial OperatorsConvert a geographic object into a two-dimensional geography.
ST_FORCECCWGeospatial Polygon ConstructorsCreates a standardized polygon from an existing one. defines standardized as the exterior being counterclockwise (CCW) and all holes being clockwise (CW) oriented.
ST_GEOGPOINTGeospatial Point ConstructorsCreates and returns a POLYGON geography with a single point, defined by the longitude and latitude specified for the function.
ST_GEOHASHGeospatial Conversion FunctionsReturns a string that represents the geohash of the input POINT.
ST_GEOMETRYTYPEGeospatial Attribute FunctionsReturns a string representing the geometry type of the input value.
ST_HAUSDORFFDISTANCEGeospatial Spatial MeasurementReturns the Hausdorff distance between two geographies in a specified measurement.
ST_INTERIORRINGNGeospatial Spatial OperatorsReturns a LINESTRING representing the interior ring of the specified POLYGON, which is specified by its index. (1-indexed)
ST_INTERSECTALLGeospatial Spatial OperatorsReturns the intersection of all geographies in the specified array. All geographies in the array must be the same type.
ST_INTERSECTIONGeospatial Spatiotemporal OperatorsReturns a tuple that represents the intersection of a spatiotemporal LINESTRING with a static geography.
ST_INTERSECTIONARRAYGeospatial Spatial OperatorsReturns a geography that represents the point-set intersection of two geographies.
ST_INTERSECTSGeospatial Spatial RelationshipsReturns TRUE if the specified geographies have an intersection, including boundaries.
ST_ISCCWGeospatial Spatial RelationshipsAlias for ST_ISPOLYGONCCW.
ST_ISCLOSEDGeospatial Spatial RelationshipsReturns TRUE if an input POLYGON has an exterior that is counter-clockwise.
ST_ISEMPTYGeospatial Attribute FunctionsReturns TRUE if the specified geography value is empty, such as ‘POLYGON EMPTY’.
ST_ISPOLYGONCCWGeospatial Spatial RelationshipsReturns TRUE if an input LINESTRING has starting and ending points that are equal.
ST_ISPOLYGONCWGeospatial Spatial RelationshipsReturns TRUE if an input POLYGON has an exterior that is clockwise.
ST_ISRINGGeospatial Spatial RelationshipsReturns TRUE if the specified LINESTRING is closed and does not intersect itself.
ST_ISSIMPLEGeospatial Spatial RelationshipsFor LINESTRING values, this function returns FALSE if any line segments intersect anywhere besides the endpoints. For POLYGON values, the function returns FALSE if either the exterior ring or any interior hole is not simple.
ST_ISVALIDGeospatial Spatial RelationshipsReturns TRUE if the specified geospatial value is a well-formed and valid geography according to the OGC standards.
ST_LENGTHGeospatial Spatial MeasurementReturns the length of the specified line in the specified measurement unit.
ST_LENGTH2DGeospatial Spatial MeasurementAlias for ST_LENGTH.
ST_LINEFROMEWKTGeospatial Linestring ConstructorCreates a LINESTRING from the specified CHAR.
ST_LINEFROMGEOJSONGeospatial Linestring ConstructorCreates a LINESTRING represented by the specified GeoJSON.
ST_LINEFROMTEXTGeospatial Linestring ConstructorCreates a LINESTRING from a specified CHAR. The CHAR must be a LINESTRING value in WKT format.
ST_LINEFROMWKBGeospatial Linestring ConstructorCreates a LINESTRING from the specified BINARY. The BINARY value must be a LINESTRING in WKB format.
ST_LINEGETALLTIMESATPOINTGeospatial Spatiotemporal OperatorsReturns a timestamp array of all times when the specified LINESTRING value intersects the specified POINT value.
ST_LINEGETPOINTATTIMEGeospatial Spatiotemporal OperatorsReturns a POINT within the bounds of the specified LINESTRING that corresponds to the interpolated point at the specified TIMESTAMP value.
ST_LINEGETTIMEATPOINTGeospatial Spatiotemporal OperatorsReturns the interpolated time of the specified POINT on the specified LINESTRING that is paired with a TIMESTAMP ARRAY.
ST_LINEINTERPOLATEPOINTGeospatial Linestring FunctionReturns a POINT along a LINESTRING based on a specified fraction of its total length.
ST_LINELOCATEPOINTGeospatial Linestring FunctionSimilar to ST_LINEINTERPOLATEPOINT, this function computes a fraction based on where a specified POINT is located along the length of a specified LINESTRING.
ST_LINESTRINGGeospatial Linestring ConstructorCreates a LINESTRING based on the specified inputs.
ST_LINESUBSTRINGGeospatial Linestring FunctionReturns a LINESTRING that is a substring of a specified line that starts and ends at the specified fractions of its total length.
ST_LONGESTLINEGeospatial Spatial OperatorsReturns the longest LINESTRING between two given geospatial arguments.
ST_LONGESTLINEGeospatial Spatiotemporal OperatorsWith the specified two LINESTRING-TIMESTAMP ARRAY pairs, this function returns a two-point LINESTRING that represents the maximum distance between points at a concurrent time.
ST_MAKEENVELOPEGeospatial Spatial OperatorsReturns a POLYGON with vertices that represent the minimum bounding box for the specified coordinates.
ST_MAKELINEGeospatial Linestring ConstructorAlias for ST_LINESTRING.
ST_MAKEPOINTGeospatial Point ConstructorsAlias for ST_POINT.
ST_MAKEPOLYGONGeospatial Polygon ConstructorsAlias for ST_POLYGON.
ST_MAXDISTANCEGeospatial Spatial MeasurementReturns maximum distance between the specified arguments.
ST_MAXDISTANCEGeospatial Spatiotemporal MeasurementReturns the two-dimensional interpolated maximum cotemporal distance between two LINESTRING-TIMESTAMP array pairs in the specified unit of measurement.
ST_MEMSIZEGeospatial Attribute FunctionsReturns an INTEGER representing the number of bytes in memory required to store the specified geography.
ST_MINIMUMBOUNDINGCIRCLEGeospatial Spatial OperatorsReturns the smallest circle POLYGON that contains the specified geographic object.
ST_MULTIDIFFERENCEARRAYGeospatial Spatial OperatorsReturns an array of geographies that represents the parts of the union of the geographies in the first array that do not intersect with the union of geographies in the second array.
ST_MINIMUMDISTANCETOSURFACEGeospatial Spatial MeasurementCalculates the shortest distance between any point along a Euclidean line segment in three-dimensional space and the surface of the Earth.
ST_MULTIINTERSECTIONARRAYGeospatial Spatial OperatorsWhen you specify two arrays of geospatial objects, this function returns an array of any intersections.
ST_MULTISYMDIFFERENCEARRAYGeospatial Spatial OperatorsWhen you specify two arrays of geospatial objects, this function returns an array of any geospatial values that do not intersect.
ST_MULTIUNIONARRAYGeospatial Spatial OperatorsWhen you specify two arrays of geospatial objects, this function returns one array that represents a union of all geographies in both arrays.
ST_NDIMENSIONGeospatial Attribute FunctionsAlias for ST_COORDDIM.
ST_NDIMSGeospatial Attribute FunctionsAlias for ST_COORDDIM.
ST_NPOINTSGeospatial Attribute FunctionsReturns an INTEGER representing the number of POINT values in a specified geography.
ST_NRINGSGeospatial Spatial OperatorsReturns the number of rings of the specified POLYGON, including both interior and exterior rings.
ST_NUMINTERIORRINGGeospatial Spatial OperatorsReturns the number of interior rings of the specified POLYGON.
ST_NUMINTERIORRINGSGeospatial Spatial OperatorsReturns the number of interior rings of the specified POLYGON.
ST_NUMPOINTSGeospatial Attribute FunctionsReturns an INTEGER representing the number of POINT values in a specified geography.
ST_OVERLAPSGeospatial Spatial RelationshipsReturns TRUE if both geographic arguments are of the same dimension and they intersect each other, but neither contains the other.
ST_PERIMETERGeospatial Spatial MeasurementReturns the length of the exterior (outer ring) of the POLYGON in the specified unit of measurement.
ST_PERIMETER2DGeospatial Spatial MeasurementAlias for ST_PERIMETER.
ST_POINTGeospatial Point ConstructorsCreates a POINT from the specified input arguments.
ST_POINTFROMEWKTGeospatial Point ConstructorsAlias for ST_POINT. Creates a POINT using an EWKT-formatted CHAR as an input argument.
ST_POINTFROMGEOHASHGeospatial Point ConstructorsCreates a POINT represented by the specified geohash.
ST_POINTFROMGEOJSONGeospatial Point ConstructorsCreates a POINT represented by the specified GeoJSON value as an input argument.
ST_POINTFROMTEXTGeospatial Point ConstructorsAlias for ST_POINT(char).
ST_POINTFROMWKBGeospatial Point ConstructorsAlias for ST_POINT(binary).
ST_POINTINSIDECIRCLEGeospatial Spatial RelationshipsReturns TRUE if the geographic object is inside a circle that is centered at the specified point coordinates and with the specified radius.
ST_POINTNGeospatial Linestring FunctionReturns the POINT value at a specified index of the given LINESTRING.
ST_POINTONSURFACEGeospatial Spatial OperatorsReturns a POINT guaranteed to intersect the specified geospatial object.
ST_POLYGONGeospatial Polygon ConstructorsCreates a POLYGON.
ST_POLYGONFROMEWKTGeospatial Polygon ConstructorsCreates a POLYGON using an EWKT-formatted CHAR as an input argument. Alias for the ST_POLYGON constructor.
ST_POLYGONFROMGEOJSONGeospatial Polygon ConstructorsCreates a POLYGON from the specified POINT, POINT array, LINESTRING, or POLYGON geography.
ST_POLYGONFROMTEXTGeospatial Polygon ConstructorsAlias for ST_POLYGON(char).
ST_POLYGONFROMWKBGeospatial Polygon ConstructorsAlias for ST_POLYGON(binary).
ST_PROJECTGeospatial Spatial OperatorsReturns a POINT by projecting a distance and an azimuth value from the specified starting POINT value.
ST_REDUCEPRECISIONGeospatial Spatial OperatorsReturns a new geospatial object with all POINT values rounded to the specified decimal precision.
ST_RELATEGeospatial Spatial RelationshipsReturns the DE-9IM intersection string that represents the nature of the intersection with the specified geographies.
ST_REMOVEPOINTGeospatial Linestring FunctionsRemoves a POINT value at a specified index from the specified line.
ST_REMOVEREPEATEDPOINTSGeospatial Spatial OperatorsReturns a new geospatial object with no repeated POINT values.
ST_REVERSEGeospatial Spatial OperatorsReturns a new geospatial object with the vertexes reversed.
ST_SEGMENTIZEGeospatial Spatial OperatorsReturns a geospatial object that the function modifies to have no segment longer than the specified max_segment_length in meters.
ST_SETPOINTGeospatial Linestring FunctionsReplaces a POINT value in a given LINESTRING at a specified index. The function returns the altered LINESTRING with the replaced point.
ST_SHORTESTLINEGeospatial Spatial OperatorsReturns the shortest LINESTRING between two specified geospatial arguments.
ST_SHORTESTLINEGeospatial Spatiotemporal OperatorsWhen you specify two LINESTRING-TIMESTAMP ARRAY pairs, this function returns a LINESTRING with two points that represents the minimum distance between points at a concurrent time.
ST_SIMPLIFYGeospatial Spatial OperatorsReturns a simplified version of the specified geography, which is either a POINT or LINESTRING.
ST_SIMPLIFYARRAYGeospatial Spatial OperatorsReturns a POLYGON array that represents a simplified version of the specified geography, which is either a POINT, LINESTRING, or POLYGON.
ST_SNAPTOGRIDGeospatial Spatial OperatorsReturns a new geography value with all POINT values rounded to the specified precisions.
ST_SRIDGeospatial Attribute FunctionsReturns the EPSG code of the spatial reference identifier (SRID) of the input geography.
ST_STARTPOINT
Geospatial Linestring FunctionsReturns the starting POINT value of the line.
ST_SYMDIFFERENCEARRAYGeospatial Spatial OperatorsReturns a geographic array that contains the parts that are not common between two geographic objects, geo1 and geo2.
ST_TOTALSECONDSININTERSECTIONGeospatial Spatiotemporal MeasurementReturns the total number of seconds spent in the intersection result calculated by the spatiotemporal version of ST_INTERSECTION.
ST_TOUCHESGeospatial Spatial RelationshipsReturns TRUE if the only POINT values in common between the two geographic arguments lie in the union of their boundaries.
ST_UNIONARRAYGeospatial Spatial OperatorsPerforms a union of the input geography values to produce a geographic array.
ST_WHOLEEARTHGeospatial Polygon ConstructorsReturns the database internal representation of the whole earth polygon.
ST_WITHINGeospatial Spatial RelationshipsAlias for ST_CONTAINS.
ST_XGeospatial Attribute FunctionsReturns the x value of the specified POINT.
ST_XMAXGeospatial Attribute FunctionsReturns the maximum x value of the specified geography.
ST_XMINGeospatial Attribute FunctionsReturns the minimum x value of the specified geography.
ST_YGeospatial Attribute FunctionsReturns the y value of the specified POINT.
ST_YMAXGeospatial Attribute FunctionsReturns the maximum y value of specified geography.
ST_YMINGeospatial Attribute FunctionsReturns the minimum y value of specified geography.
STARTSWITHCharacter and Binary FunctionsReturns true if string starts with substring and false otherwise.
STDEVAggregate FunctionsSample standard deviation.
STDDEVAggregate FunctionsAlias for STDEV.
STDDEV_POPAggregate FunctionsAlias for STDEVP.
STDDEV_SAMPAggregate FunctionsAlias for STDEV.
STDEVPAggregate FunctionsPopulation standard deviation.
STRING_AGGAggregate FunctionsReturns a string concatenated from every row from the expression. The delimiter argument is optional.
STRING_TO_ARRAYArray FunctionsConverts the string representation of an array (e.g., 'int[1,2,NULL]') into an array.
STRING_TO_TUPLETuple FunctionsConverts the string representation of a tuple (e.g 'tuple<<INT,BIGINT,CHAR>>(1,2,NULL)') into a tuple.
STRPOSCharacter and Binary FunctionsEquivalent to using LOCATE as LOCATE(substring, string). Note the reversed argument order.
SUBSTRCharacter and Binary FunctionsAlias for SUBSTRING.
SUBSTRINGCharacter and Binary FunctionsReturns the substring of a character or binary value.
SUBNETNetwork Type FunctionsComputes the prefix from an IP or IPV4 value and the size of the prefix.
SUMAggregate FunctionsSum over the set.
SVD_DECOMPMatrix FunctionsReturns SVD decomposition of a matrix as a tuple of 3 matrices.
TANMath FunctionsReturns the tangent of x.
TANHMath FunctionsReturns the hyperbolic tangent of x.
TIMEScalar Data Conversion FunctionsParses the string to create a time value. The string must be in the form 'HH:MM[.SSSSSSSSS]'.
TIMESTAMPScalar Data Conversion FunctionsParses a string and makes a timestamp value. The string must be in the format 'YYYY-MM-DD[ HH:MM][.SSSSSSSSS]'.
TIMESTAMP_TO_NANOSDate and Time FunctionsConvert timestamp into nanoseconds after epoch as BIGINT.
TO_ARRAY_LENGTHSpecial Data Pipeline Transformation FunctionsCreate the specified number of copies of any JSON object in an array.
TO_BASEMath FunctionsConverts an integer value to its string representation in a specified base (radix).
TO_CHARCharacter and Binary FunctionsConverts a numeric, date, or timestamp value into a CHAR date type.
TO_DATEFormatting FunctionsConverts a character value with the specified format to a DATE type.
TO_NUMBERFormatting FunctionsConverts a character value with the specified format to a DECIMAL type.
TO_TIMESTAMPFormatting FunctionsConverts a character value with the specified format to a TIMESTAMP type.
TRANSFORMSpecial Data Pipeline Transformation FunctionsTransforms an array based on the logic in a lambda expression.
TRANSLATECharacter and Binary FunctionsReplaces specified characters in a provided string with a separate set of characters.
TRANSPOSEMatrix FunctionsReturns transpose of the matrix.
TRIMCharacter and Binary FunctionsAlias for BTRIM. Trim leading and trailing blanks from the string.
TRUNCMath FunctionsReturns x truncated to y decimal places.
TRUNCATEMath FunctionsAlias for TRUNC.
TUPLE()Tuple FunctionsConstruct a tuple with the specified elements. Types of the tuple are inferred from the inner elements.
TUPLE<<>>Tuple FunctionsConstruct a tuple with the specified elements. NULL is also supported as an element.
TYPE[]Array FunctionsConstruct an array of SQL type TYPE giving the elements.
UCASECharacter and Binary FunctionsAlias for UPPER.
UNNESTArray FunctionsExpand each element in an input array out to an individual row.
UPPERCharacter and Binary FunctionsConvert string to upper case.
USECSDate and Time FunctionsThe seconds part of a time value, including fractional parts, returned as an integer. The function multiplies the seconds part of the value by 1,000,000.
UUIDScalar Data Conversion FunctionsParses the string and makes a Universally Unique IDentifier (UUID) value. The string must be a valid UUID.
UUID_GENERATEOther Functions and ExpressionsGenerates a random UUID value (version 4).
VAR_POPAggregate FunctionsAlias for VARIANCEP.
VAR_SAMPAggregate FunctionsAlias for VARIANCE.
VARIANCEAggregate FunctionsSample variance.
VARIANCEPAggregate FunctionsPopulation variance.
VECTOR_ARGMAXMatrix FunctionsReturns the argmax of a one-dimensional matrix or vector.
VECTOR_ARGMINMatrix FunctionsReturns the argmin of a one-dimensional matrix or vector.
VECTOR_MAXMatrix FunctionsReturns the maximum of elements in a one-dimensional matrix/vector.
VECTOR_MINMatrix FunctionsReturns the minimum of elements in a one-dimensional matrix/vector.
VECTOR_SUMMatrix FunctionsReturns the sum of elements in a one-dimensional matrix/vector.
VERSIONSystem FunctionsReturns the version of the database to which the client is currently connected.
WEEKDate and Time FunctionsReturns the ISO-8601 week number, as an integer, of the specified timestamp or date value.
WEEKSScalar Data Conversion FunctionsConverts an integral value to an interval value of type weeks to be used in date calculations.
WIDTH_BUCKETSpecial Data Pipeline Transformation FunctionsCreates N equal-width buckets in the range [min,max) as a histogram.
YEARDate and Time FunctionsExtracts the year portion of a timestamp or date as an integer.
YEARSScalar Data Conversion FunctionsConverts an integral value to an interval value of type years.
ZERO_MATRIXMatrix FunctionsReturns a zero matrix of the specified (row, col) dimensions.
ZIP_WITHSpecial Data Pipeline Transformation FunctionsMerges two or more input arrays, element-wise, into a single array using the trailing combining function.
ZNConditional FunctionsIf x is NULL, returns 0. Otherwise, returns x.
ZSCOREWindow Aggregate FunctionsZscore of the sample based on the stddev() function.
ZSCOREPWindow Aggregate FunctionsZscore of the sample based on the stddevp() function.
Last modified on May 27, 2026