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
ACCURACY_SCOREAggregate FunctionsReturns the fraction of predictions that match the actual class labels.
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_AGGAggregate FunctionsReturns an array containing every row from the expression.
ARRAY_CONCAT_AGGAggregate FunctionsReturns an array that concatenates arrays across rows.
AVGAggregate FunctionsAverage, or arithmetic mean, over the set.
COEFFICIENT_OF_DETERMINATIONAggregate FunctionsComputes the coefficient of determination (R²) between actual and predicted values.
CONFUSION_MATRIXAggregate FunctionsReturns a structured representation of the counts for every combination of actual and predicted class labels relative to a specified positive class.
CORRAggregate FunctionsAlias for CORRELATION.
CORRELATIONAggregate FunctionsSample correlation.
CORRELATIONPAggregate FunctionsPopulation correlation.
COUNTAggregate FunctionsNumber of rows in the set.
COVAR_POPAggregate FunctionsAlias for COVARIANCEP.
COVAR_SAMPAggregate FunctionsAlias for COVARIANCE.
COVARIANCEAggregate FunctionsSample covariance.
COVARIANCEPAggregate FunctionsPopulation covariance.
F1_SCOREAggregate FunctionsReturns the harmonic mean of precision and recall for a specified positive class.
KURTOSISAggregate FunctionsThe sample over the set.
KURTOSISPAggregate FunctionsThe population over the set.
MAXAggregate FunctionsMaximum value in the specified column.
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.
MINAggregate FunctionsMinimum value in the specified column.
PRECISION_SCOREAggregate FunctionsReturns the precision score for a specified positive class.
PRODUCTAggregate FunctionsProduct over the set.
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).
SKEWAggregate FunctionsThe sample skewness over the set of values.
SKEWPAggregate FunctionsComputes the population skewness over the set of values.
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.
SUMAggregate FunctionsSum over the set.
VAR_POPAggregate FunctionsAlias for VARIANCEP.
VAR_SAMPAggregate FunctionsAlias for VARIANCE.
VARIANCEAggregate FunctionsSample variance.
VARIANCEPAggregate FunctionsPopulation variance.
ARRAY[]Array Functions-compliant constructor. The type of the array is deduced from the elements.
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_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 return 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_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’.
CAST_TO_ARRAYArray FunctionsCasts the elements of the array to another type.
CHARArray FunctionsConverts array to its string representation.
CROSS_ENTROPY_LOSSArray FunctionsReturns the cross entropy loss of two arrays.
HINGE_LOSSArray FunctionsReturns the hinge loss of two arrays.
LOG_LOSSArray FunctionsReturns the log loss of two arrays.
LOGITS_LOSSArray FunctionsReturns the logits loss of two arrays.
SOFTMAXArray FunctionsReturns the softmax of the array.
STRING_TO_ARRAYArray FunctionsConverts the string representation of an array (e.g., 'int[1,2,NULL]') into an array.
TYPE[]Array FunctionsConstruct an array of SQL type TYPE giving the elements.
UNNESTArray FunctionsExpand each element in an input array out to an individual row.
ASCIICharacter and Binary FunctionsReturns the ASCII code value of the leftmost character of the character value.
BIT_LENGTHCharacter and Binary FunctionsReturns the length of the character value in bits.
BTRIMCharacter and Binary FunctionsAlias for TRIM.
CHAR_LENGTHCharacter and Binary FunctionsAlias for LENGTH.
CHARACTER_LENGTHCharacter and Binary FunctionsAlias for LENGTH.
CHRCharacter and Binary FunctionsConverts an integer value to a string.
CONCATCharacter and Binary FunctionsConcatenates two values, which must both be either binary, hash, or string data types. This function is equivalent to the || operator.
ENDSWITHCharacter and Binary FunctionsReturns true if x ends with y and false otherwise.
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 the case.
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.
LCASECharacter and Binary FunctionsAlias for LOWER.
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.
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.
LOCATECharacter and Binary FunctionsAlias for POSITION. Returns the index position of the first occurrence of the character value substring in character value string.
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.
MD5Character and Binary FunctionsReturns the hexadecimal string (all lowercase) representing the md5 hash of char.
MIDCharacter and Binary FunctionsAlias for SUBSTRING.
OCTET_LENGTHCharacter and Binary FunctionsReturns the length in bytes of a character or binary value.
POSITIONCharacter and Binary FunctionsAlias for LOCATE.
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.
REPEATCharacter and Binary FunctionsRepeats the character value char a number of times equal to num.
REPLACECharacter 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.
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.
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.
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.
STARTSWITHCharacter and Binary FunctionsReturns true if string starts with substring and false otherwise.
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.
TO_CHARCharacter and Binary FunctionsConverts a numeric, date, or timestamp value into a CHAR date type.
TRANSLATECharacter and Binary FunctionsReplaces specified characters in a provided string with a separate set of characters.
TRIMCharacter and Binary FunctionsAlias for BTRIM. Trim leading and trailing blanks from the string.
UCASECharacter and Binary FunctionsAlias for UPPER.
UPPERCharacter and Binary FunctionsConvert string to upper case.
CASEConditional 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.
COALESCEConditional FunctionsEvaluates to the first argument that is not NULL, or NULL if all arguments are NULL.
GREATESTConditional FunctionsReturns the largest non-NULL value of all the arguments, or NULL if all the arguments are NULL.
IF_NULLConditional FunctionsAlias for COALESCE.
LEASTConditional FunctionsReturns the smallest non-NULL value of all arguments, or NULL if all arguments are NULL.
MURMUR3Conditional FunctionsReturns a 32-bit MurmurHash3 hash of the input value as an INTEGER data type.
NULL_IFConditional FunctionsReturns the NULL value if two arguments are equal; otherwise, returns the first argument.
ZNConditional FunctionsIf x is NULL, returns 0. Otherwise, returns x.
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.
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.
ADD_MONTHSDate and Time FunctionsAdds the specified number of months to the date.
CENTURYDate and Time FunctionsReturns the number of centuries.
CURDATEDate and Time FunctionsAlias for CURRENT_DATE.
CURRENT_DATEDate and Time FunctionsReturns the current date in the format YYYY-MM-DD.
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).
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.
DECADEDate and Time FunctionsThe decade is the year divided by 10.
DOWDate and Time FunctionsAlias for DAY_OF_WEEK.
DOYDate and Time FunctionsAlias for DAY_OF_YEAR.
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.
EXTRACTDate and Time FunctionsExtract a component from a timestamp or date.
HOURDate and Time FunctionsExtracts the hour portion of a timestamp as an integer.
ISDATEDate and Time FunctionsReturns TRUE if the input argument can be successfully cast to a date.
ISODOWDate and Time FunctionsExtracts the day of the week based on ISO 8601, which ranges from Monday (1) to Sunday (7).
MAKEDATETIMEDate and Time FunctionsReturns a timestamp consisting of the specified date and time.
MILLISECONDDate and Time FunctionsExtracts the millisecond portion of a timestamp as an integer.
MINUTEDate and Time FunctionsExtracts the minute portion of a timestamp or date as an integer.
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_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.
NANOS_TO_TIMESTAMPDate and Time FunctionsConvert a number of nanoseconds into a timestamp equivalent to the duration after the epoch time.
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.
QUARTERDate and Time FunctionsReturns an integer between 1 and 4 that represents the quarter of the year in which the specified date falls.
ROUNDDate and Time FunctionsReturns the specified date or timestamp, rounded to the specified precision.
SECONDDate and Time FunctionsExtracts the seconds portion of a timestamp as an integer.
TIMESTAMP_TO_NANOSDate and Time FunctionsConvert timestamp into nanoseconds after epoch as BIGINT.
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.
WEEKDate and Time FunctionsReturns the ISO-8601 week number, as an integer, of the specified timestamp or date value.
YEARDate and Time FunctionsExtracts the year portion of a timestamp or date as an integer.
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.
ST_COORDDIMGeospatial Attribute FunctionsAlias for ST_NDIMS or ST_NDIMENSION. Returns an INTEGER of the coordinate dimension of the specified geography.
ST_DIMENSIONGeospatial Attribute FunctionsReturns an INTEGER that represents the dimension of the specified geography.
ST_GEOMETRYTYPEGeospatial Attribute FunctionsReturns a string representing the geometry type of the input value.
ST_ISEMPTYGeospatial Attribute FunctionsReturns TRUE if the specified geography value is empty, such as ‘POLYGON EMPTY’.
ST_MEMSIZEGeospatial Attribute FunctionsReturns an INTEGER representing the number of bytes in memory required to store the specified geography.
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_NUMPOINTSGeospatial Attribute FunctionsReturns an INTEGER representing the number of POINT values in a specified geography.
ST_SRIDGeospatial Attribute FunctionsReturns the EPSG code of the spatial reference identifier (SRID) of the input geography.
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.
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_GEOHASHGeospatial Conversion FunctionsReturns a string that represents the geohash of the input POINT.
ST_ADDPOINTGeospatial Linestring FunctionAdds a POINT to the specified LINESTRING at the specified 0-indexed location.
ST_ENDPOINTGeospatial Linestring FunctionReturns the endpoint of a specified LINESTRING. The returned value is a POINT.
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_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_MAKELINEGeospatial Linestring ConstructorAlias for ST_LINESTRING.
ST_POINTNGeospatial Linestring FunctionReturns the POINT value at a specified index of the specified LINESTRING.
ST_REMOVEPOINTGeospatial Linestring FunctionRemoves a POINT value at a specified index from the specified line.
ST_SETPOINTGeospatial Linestring FunctionReplaces a POINT value in a specified LINESTRING at a specified index. The function returns the altered LINESTRING with the replaced point.
ST_STARTPOINTGeospatial Linestring FunctionReturns the starting POINT value of the line.
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_GEOGPOINTGeospatial Point ConstructorsCreates and returns a POLYGON geography with a single point, defined by the longitude and latitude specified for the function.
ST_MAKEPOINTGeospatial Point ConstructorsAlias for ST_POINT.
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_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_MAKEPOLYGONGeospatial Polygon ConstructorsAlias for ST_POLYGON.
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_WHOLEEARTHGeospatial Polygon ConstructorsReturns the database internal representation of the whole earth polygon.
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_AZIMUTHGeospatial Spatial MeasurementReturns the azimuth of the line from point1 to point2 in radians.
ST_DISTANCEGeospatial Spatial MeasurementReturns the minimum distance between the specified arguments.
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_EUCLIDEANDISTANCE3DGeospatial Spatial MeasurementReturns the minimum distance between two geospatial points with altitude values.
ST_HAUSDORFFDISTANCEGeospatial Spatial MeasurementReturns the Hausdorff distance between two geographies in a specified measurement.
ST_LENGTHGeospatial Spatial MeasurementReturns the length of the specified line in the specified measurement unit.
ST_LENGTH2DGeospatial Spatial MeasurementAlias for ST_LENGTH.
ST_MAXDISTANCEGeospatial Spatial MeasurementReturns maximum distance between the specified arguments.
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_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_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_CLOSESTPOINTGeospatial Spatial OperatorsReturns the two-dimensional POINT of one specified geospatial object that is closest to a second specified geospatial object.
ST_CONVEXHULLGeospatial Spatial OperatorsThe convex hull is the smallest convex geometry that encloses the input geometry.
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_ENVELOPEGeospatial Spatial OperatorsReturns a POLYGON that represents the minimum bounding box for the specified geography.
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_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_INTERSECTIONARRAYGeospatial Spatial OperatorsReturns a geography that represents the point-set intersection of two geographies.
ST_LONGESTLINEGeospatial Spatial OperatorsReturns the longest LINESTRING between two specified geospatial arguments.
ST_MAKEENVELOPEGeospatial Spatial OperatorsReturns a POLYGON with vertices that represent the minimum bounding box for the specified coordinates.
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_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_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_POINTONSURFACEGeospatial Spatial OperatorsReturns a POINT guaranteed to intersect the specified geospatial object.
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_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_SHORTESTLINEGeospatial Spatial OperatorsReturns the shortest LINESTRING between two specified geospatial arguments.
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_SYMDIFFERENCEARRAYGeospatial Spatial OperatorsReturns a geographic array that contains the parts that are not common between two geographic objects, geo1 and geo2.
ST_UNIONARRAYGeospatial Spatial OperatorsPerforms a union of the input geography values to produce a geographic array.
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_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_DISJOINTGeospatial Spatial RelationshipsReturns true if the specified geographies have no intersection, including boundaries. Both geographic arguments can be different types.
ST_DWITHINGeospatial Spatial RelationshipsReturns TRUE if the geographies are within a specified distance in meters.
ST_EQUALSGeospatial Spatial RelationshipsReturns TRUE if both geographies are spatially equal.
ST_INTERSECTSGeospatial Spatial RelationshipsReturns TRUE if the specified geographies have 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_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_OVERLAPSGeospatial Spatial RelationshipsReturns TRUE if both geographic arguments are of the same dimension and they intersect each other, but neither contains the other.
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_RELATEGeospatial Spatial RelationshipsReturns the DE-9IM intersection string that represents the nature of the intersection with the specified geographies.
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_WITHINGeospatial Spatial RelationshipsAlias for ST_CONTAINS.
ST_DISTANCEGeospatial Spatiotemporal MeasurementReturns the two-dimensional interpolated minimum simultaneous distance between two LINESTRING-TIMESTAMP array pairs in the specified unit of measurement.
ST_MAXDISTANCEGeospatial Spatiotemporal MeasurementReturns the two-dimensional interpolated maximum cotemporal distance between two LINESTRING-TIMESTAMP array pairs in the specified unit of measurement.
ST_TOTALSECONDSININTERSECTIONGeospatial Spatiotemporal MeasurementReturns the total number of seconds spent in the intersection result calculated by the spatiotemporal version of ST_INTERSECTION.
ST_INTERSECTIONGeospatial Spatiotemporal OperatorsReturns a tuple that represents the intersection of a spatiotemporal LINESTRING with a static geography.
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_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_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.
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.
ABSMath FunctionsReturns the absolute value of a specified floating-point number.
ACOSMath FunctionsReturns the inverse cosine of a specified floating-point number.
ACOSHMath FunctionsReturns the hyperbolic arc-cosine of a specified floating-point number.
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.
BICDFMath FunctionsThe cumulative distribution function of the standard bivariate normal distribution.
BIPDFMath FunctionsThe probability density function of the standard bivariate normal distribution.
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).
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).
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.
COSMath FunctionsReturns the cosine of x.
COSHMath FunctionsReturns the hyperbolic cosine of x.
COTMath FunctionsReturns the cotangent of x.
DEGREESMath FunctionsReturns the corresponding angle in degrees for x in radians.
DIVMath FunctionsReturns the result of x divided by y. If y is zero, returns NULL.
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).
FLOORMath FunctionsReturns the nearest integer less than or equal to x.
GAMMAMath FunctionsGamma function.
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).
IERFMath FunctionsThe inverse of the ERF error function.
IERFCMath FunctionsThe inverse of the complement of the error function.
LEAKYRELUMath FunctionsReturns the leaky rectified linear unit function of x.
LEFT_SHIFTMath FunctionsReturns x shifted to the left by y bits.
LNMath FunctionsReturns the natural logarithm of x.
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.
LOG2Math FunctionsReturns the base 2 logarithm of x.
MODMath FunctionsReturns the remainder from x divided by y.
PIMath FunctionsReturns the constant value of π.
PMODMath FunctionsReturns the smallest non-negative equivalence class of x % y.
POWERMath FunctionsReturns x raised to the power of y.
PROBITMath FunctionsThe inverse of the cumulative distribution function.
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).
RELUMath FunctionsReturns the rectified linear unit function of x.
RIGHT_SHIFTMath FunctionsReturns x shifted to the right by y bits.
ROUNDMath FunctionsReturns x rounded to the nearest integer.
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.
SQRTMath FunctionsReturns the square root of x.
SQUAREMath FunctionsReturns the square of x.
TANMath FunctionsReturns the tangent of x.
TANHMath FunctionsReturns the hyperbolic tangent of x.
TO_BASEMath FunctionsConverts an integer value to its string representation in a specified base (radix).
TRUNCMath FunctionsReturns x truncated to y decimal places.
TRUNCATEMath FunctionsAlias for TRUNC.
ABSMatrix FunctionsReturns magnitude of one-dimensional matrix or vector.
CROSS_ENTROPY_LOSSMatrix FunctionsReturns the cross entropy loss of two one-dimensional matrices or vectors.
DETMatrix FunctionsReturns the determinant of the matrix as a double.
DOTMatrix FunctionsReturns dot product of two one-dimensional matrices/vectors.
EIGENMatrix FunctionsReturns eigenvalues and eigenvalues of a square matrix as a vector of pairs.
FROBENIUSMatrix FunctionsReturns the Frobenius norm of a matrix.
HINGE_LOSSMatrix FunctionsReturns the hinge loss of two one-dimensional matrices or vectors.
IDENTITY_MATRIXMatrix FunctionsReturns an identity matrix of the specified dimension.
INVERSEMatrix FunctionsReturns inverse of a square, invertible matrix.
LOG_LOSSMatrix FunctionsReturns the log loss of two one-dimensional matrices or vectors.
LOGITS_LOSSMatrix FunctionsReturns the logits loss of two one-dimensional matrices or vectors.
LUPQ_DECOMPMatrix FunctionsReturns LUPQ decomposition of a square matrix A as a tuple of 4 matrices where PAQ = LU.
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.
MATRIX_FROM_TEXTMatrix FunctionsCreates a matrix from the specified string.
MATRIX_TRACEMatrix FunctionsReturns trace of a square matrix as a double.
NULL_MATRIXMatrix FunctionsReturns a NULL matrix of the specified (row, col) dimensions.
QR_DECOMPMatrix FunctionsReturns QR decomposition of a matrix as a tuple of 2 matrices.
SOFTMAXMatrix FunctionsReturns the softmax of a one-dimensional matrix or vector.
SVD_DECOMPMatrix FunctionsReturns SVD decomposition of a matrix as a tuple of 3 matrices.
TRANSPOSEMatrix FunctionsReturns transpose of the matrix.
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.
ZERO_MATRIXMatrix FunctionsReturns a zero matrix of the given (row, col) dimensions.
IPNetwork Type FunctionsCasts an IP data type from an IPV4 data type expression.
IPV4Network Type FunctionsCasts an IPV4 address from an IPV6 address.
IS_IPV4Network Type FunctionsTests whether the database can convert the IP value to the IPV4 data type.
SUBNETNetwork Type FunctionsComputes the prefix from an IP or IPV4 value and the size of the prefix.
CANCELQuery ManagementCancels a running query based on its specific query identifier.
KILLQuery ManagementKills a running query identified by its UUID.
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.
BOOLEANScalar Data Conversion FunctionsParses a string to create a Boolean value. The string must contain either true or false. It is case-insensitive.
BYTEScalar Data Conversion FunctionsCasts the argument to a value of type byte.
CHARScalar Data Conversion FunctionsCreates a string version of the numeric value.
DATEScalar Data Conversion FunctionsParses a string in the form ‘YYYY-MM-DD’ to create a date. Extra characters are ignored.
DAYSScalar Data Conversion FunctionsConverts an integral value to an interval value of type days to be used in date calculations.
DECIMALScalar Data Conversion FunctionsCasts the argument to a value of type decimal.
DOUBLEScalar Data Conversion FunctionsCasts the argument to a value of type double.
FLOATScalar Data Conversion FunctionsCasts the argument to a value of type float.
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.
HOURSScalar Data Conversion FunctionsConverts an integral value to an interval value of type hours.
INTEGERScalar Data Conversion FunctionsCasts the argument to a value of type integer.
MICROSECONDSScalar Data Conversion FunctionsConverts an integral value to an interval value of type microseconds.
MILLISECONDSScalar Data Conversion FunctionsConverts an integral value to an interval value of type milliseconds.
MINUTESScalar Data Conversion FunctionsConverts an integral value to an interval value of type minutes.
MONTHSScalar Data Conversion FunctionsConverts an integral value to an interval value of type months to be used in date calculations.
NANOSECONDSScalar Data Conversion FunctionsConverts an integral value to an interval value of type nanoseconds.
SECONDSScalar Data Conversion FunctionsConverts an integral value to an interval value of type seconds.
SMALLINTScalar Data Conversion FunctionsCasts the argument to a value of type smallint.
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]'.
UUIDScalar Data Conversion FunctionsParses the string and makes a UUID value. The string must be a valid UUID.
WEEKSScalar Data Conversion FunctionsConverts an integral value to an interval value of type weeks to be used in date calculations.
YEARSScalar Data Conversion FunctionsConverts an integral value to an interval value of type years.
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_CONTAINSSpecial Data Pipeline Transformation FunctionsReturns true if the array contains the specified value.
ARRAY_SORTSpecial Data Pipeline Transformation FunctionsSort and return the input array based on the natural ordering of its elements or the specified Lambda function.
CASE WHENSpecial Data Pipeline Transformation FunctionsReturns the result value based on whether an expression is true.
ELEMENT_ATSpecial Data Pipeline Transformation FunctionsReturns the element value of the array or tuple at the specified index.
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.
FILTERSpecial Data Pipeline Transformation FunctionsFilters elements in an array based on the logic in a lambda expression.
FLATTENSpecial Data Pipeline Transformation FunctionsTransforms an N-dimensional array into an N-1-dimensional array.
IFSpecial Data Pipeline Transformation FunctionsReturns T if the expression X evaluates to true, or the function returns F if X evaluates to false.
LOOKUPSpecial Data Pipeline Transformation FunctionsLook up and load data in an external data source.
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.
METADATASpecial Data Pipeline Transformation FunctionsExtracts the metadata value for the specified key from available metadata for the pipeline.
PARSE_DELIMITED_ARRAYSpecial Data Pipeline Transformation FunctionsConverts a string of text data representing an array into a CHAR[].
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.
TO_ARRAY_LENGTHSpecial Data Pipeline Transformation FunctionsCreate the specified number of copies of any JSON object in an array.
TRANSFORMSpecial Data Pipeline Transformation FunctionsTransforms an array based on the logic in a lambda expression.
WIDTH_BUCKETSpecial Data Pipeline Transformation FunctionsCreates N equal-width buckets in the range [min,max) as a histogram.
ZIP_WITHSpecial Data Pipeline Transformation FunctionsMerges two or more input arrays, element-wise, into a single array using the trailing combining function.
COMMITOther Functions and ExpressionsReturns the most recent commit hash of the database to which the client is currently connected.
RAND_UUIDOther Functions and ExpressionsGenerates a random UUID value (version 4).
UUID_GENERATEOther Functions and ExpressionsGenerates a random UUID value (version 4).
CURRENT_DATABASESystem FunctionsAlias for DATABASE.
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_USERSystem FunctionsReturns the user for the current connection.
DATABASESystem FunctionsReturns the name of the database to which the client is currently connected.
SHOWSystem FunctionsThe SHOW function enables you to explore the database and its metadata for user-defined items.
VERSIONSystem FunctionsReturns the version of the database to which the client is currently connected.
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.
CAST_TO_TUPLETuple FunctionsConverts a tuple into another tuple of a different type.
CHARTuple FunctionsConverts a tuple to its string representation.
STRING_TO_TUPLETuple FunctionsConverts the string representation of a tuple (e.g ‘tuple<<INT,BIGINT,CHAR>>(1,2,NULL)’) into a tuple.
TUPLE()Tuple FunctionsConstruct a tuple of specified elements. Types of the tuple are inferred from the inner elements.
TUPLE<<>>Tuple FunctionsConstruct a tuple of specified elements. NULL is also supported as an element.
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.
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.
FIRST_VALUEWindow Aggregate FunctionsReturns the first value in the ordered result set.
LAGWindow Aggregate FunctionsReturns the row, which is the specified number backward from the current row. Default is 1 if offset is omitted.
LAST_VALUEWindow Aggregate FunctionsReturns the last value in the ordered result set.
LEADWindow Aggregate FunctionsReturns the row, which is the specified number forward from the current row. Default is 1 if offset is omitted.
NTH_VALUEWindow Aggregate FunctionsReturns the nth value in the ordered result set.
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.
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.
ROW_NUMBERWindow Aggregate FunctionsAssigns a unique number to each row in the result set.
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