SQL Reference
Categorized SQL Functions List
function name category name function description any value https //docs ocient com/aggregate functions aggregate functions returns an arbitrary, non null value from the input column approx count distinct https //docs ocient com/aggregate functions aggregate functions approximate distinct count by using hyper log log (95% confidence interval that the value is within 4 5%) aggregate functions docid\ a794p1hruev25euof9svc aggregate functions allows the aggregation engine to use a faster, non deterministic ordering to summate floating point columns avg https //docs ocient com/aggregate functions aggregate functions average, or arithmetic mean, over the set corr https //docs ocient com/aggregate functions aggregate functions alias for correlation correlation https //docs ocient com/aggregate functions aggregate functions sample correlation correlationp https //docs ocient com/aggregate functions aggregate functions population correlation count https //docs ocient com/aggregate functions aggregate functions number of rows in the set covar pop https //docs ocient com/aggregate functions aggregate functions alias for covariancep covar samp https //docs ocient com/aggregate functions aggregate functions alias for covariance covariance https //docs ocient com/aggregate functions aggregate functions sample covariance covariancep https //docs ocient com/aggregate functions aggregate functions population covariance kurtosis https //docs ocient com/aggregate functions aggregate functions the sample over the set kurtosisp https //docs ocient com/aggregate functions aggregate functions the population over the set max https //docs ocient com/aggregate functions aggregate functions maximum value in the specified column min https //docs ocient com/aggregate functions aggregate functions minimum value in the specified column product https //docs ocient com/aggregate functions aggregate functions product over the set skew https //docs ocient com/aggregate functions aggregate functions the sample over the set stddev https //docs ocient com/aggregate functions aggregate functions alias for stdev stddev pop https //docs ocient com/aggregate functions aggregate functions alias for stdevp stddev samp https //docs ocient com/aggregate functions aggregate functions alias for stdev stdev https //docs ocient com/aggregate functions aggregate functions sample standard deviation stdevp https //docs ocient com/aggregate functions aggregate functions population standard deviation sum https //docs ocient com/aggregate functions aggregate functions sum over the set swep https //docs ocient com/aggregate functions aggregate functions the population over the set var pop https //docs ocient com/aggregate functions aggregate functions alias for variancep var samp https //docs ocient com/aggregate functions aggregate functions alias for variance variance https //docs ocient com/aggregate functions aggregate functions sample variance variancep https //docs ocient com/aggregate functions aggregate functions population variance array\[] https //docs ocient com/array functions and operators array functions postgresql® compliant constructor the type of the array is deduced from the elements array append https //docs ocient com/array functions and operators array functions add value to the back of an array array argmax https //docs ocient com/array functions and operators array functions returns the corresponding argmax of the array as a bigint index array argmin https //docs ocient com/array functions and operators array functions returns the corresponding argmin of the array as a bigint index array cat https //docs ocient com/array functions and operators array functions concatenate 2 arrays into a new one array length https //docs ocient com/array functions and operators array functions return the number of elements of a given array array max https //docs ocient com/array functions and operators array functions returns the corresponding maximum of the array array min https //docs ocient com/array functions and operators array functions returns the corresponding minimum of the array array position https //docs ocient com/array functions and operators array functions returns the position of the first matching scalar in the array array positions https //docs ocient com/array functions and operators array functions returns all elements stored in the right array, and return their respective positions in the left array array prepend https //docs ocient com/array functions and operators array functions add value to the front of an array array remove https //docs ocient com/array functions and operators array functions remove value from the array array replace https //docs ocient com/array functions and operators array functions replace value by another in an array array sum https //docs ocient com/array functions and operators array functions returns 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 string https //docs ocient com/array functions and operators array functions converts array to a list of elements separated by 'delimiter' cast to array https //docs ocient com/array functions and operators array functions casts the elements of the array to another type char https //docs ocient com/array functions and operators array functions converts array to its string representation cross entropy loss https //docs ocient com/array functions and operators array functions returns the cross entropy loss of two arrays hinge loss https //docs ocient com/array functions and operators array functions returns the hinge loss of two arrays log loss https //docs ocient com/array functions and operators array functions returns the log loss of two arrays logits loss https //docs ocient com/array functions and operators array functions returns the logits loss of two arrays softmax https //docs ocient com/array functions and operators array functions returns the softmax of the array string to array https //docs ocient com/array functions and operators array functions converts the string representation of an array (e g , 'int\[1,2,null]' ) into an array type\[] https //docs ocient com/array functions and operators array functions construct an array of sql type type giving the elements ascii https //docs ocient com/character and binary functions#eaw i character and binary functions returns the ascii code value of the leftmost character of the character value bit length https //docs ocient com/character and binary functions#niwnr character and binary functions returns the length of the character value in bits btrim https //docs ocient com/character and binary functions#9dy9g character and binary functions alias for trim char length https //docs ocient com/character and binary functions#wn8xq character and binary functions alias for length character length https //docs ocient com/character and binary functions#7xlw character and binary functions alias for length chr https //docs ocient com/character and binary functions#jeht7 character and binary functions converts an integer value to a string concat https //docs ocient com/character and binary functions#9tr8c character and binary functions concatenates two values, which must both be either binary, hash, or string data types this function is equivalent to the || operator endswith https //docs ocient com/character and binary functions#xhnlf character and binary functions returns true if x ends with y and false otherwise initcap https //docs ocient com/character and binary functions#9krod character and binary functions for each word in the provided string, capitalize the first character if it is alphabetic instr https //docs ocient com/character and binary functions#mjw1m character and binary functions returns 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 text https //docs ocient com/character and binary functions#ht6bq character and binary functions returns the value for the key value pair referenced by a series of path elements in a json string lcase https //docs ocient com/character and binary functions#zmum character and binary functions alias for lower left https //docs ocient com/character and binary functions#clz1b character and binary functions return 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 length https //docs ocient com/character and binary functions#spvjs character and binary functions for character data types, this value is in terms of characters for binary data types, this value is in terms of bytes locate https //docs ocient com/character and binary functions# 4mhu character and binary functions alias for position returns the index position of the first occurrence of the character value substring in character value string lower https //docs ocient com/character and binary functions#visby character and binary functions alias for lcase convert string to lowercase lpad https //docs ocient com/character and binary functions# jq0h character and binary functions pad the input text to the specified length with the pad string on the left side ltrim https //docs ocient com/character and binary functions#7tfyj character and binary functions removes leading blanks from the string value string md5 https //docs ocient com/character and binary functions#bfgh9 character and binary functions returns the hexadecimal string (all lowercase) representing the md5 hash of char mid https //docs ocient com/character and binary functions#pbbau character and binary functions alias for substring octet length https //docs ocient com/character and binary functions#gpl4a character and binary functions returns the length in bytes of a character or binary value regexp count https //docs ocient com/character and binary functions#6bfif character and binary functions searches a string for all occurrences of a regular expression pattern regexp instr https //docs ocient com/character and binary functions#bx1sw character and binary functions searches a string using a regular expression pattern and returns an integer representing the start position or end position of the substring that matches regexp replace https //docs ocient com/character and binary functions#usppl character and binary functions searches a string for all occurrences of a regular expression pattern regexp substr https //docs ocient com/character and binary functions#z x9p character and binary functions returns one substring from a string that matches a specified regular expression pattern position https //docs ocient com/character and binary functions#j28jb character and binary functions alias for locate repeat https //docs ocient com/character and binary functions#6bfif character and binary functions repeats the character value char a number of times equal to num replace https //docs ocient com/character and binary functions#0fqd character and binary functions replaces all occurrences of substr to remove in the character value string with substr to replace reverse https //docs ocient com/character and binary functions#582yz character and binary functions reverse the input string right https //docs ocient com/character and binary functions#vgdfk character and binary functions return the number of trailing characters in the string equal to the value integer rpad https //docs ocient com/character and binary functions#raxqa character and binary functions pad the input text to the specified length with the pad string on the right side rsubstring https //docs ocient com/character and binary functions#mq8en character and binary functions returns the substring from the right side of a string based on a specified length rtrim https //docs ocient com/character and binary functions#8djr6 character and binary functions removes leading blanks from the string value string sha1 https //docs ocient com/character and binary functions#sgl o character and binary functions uses the sha 1 cryptographic hash function to convert a string into a 40 character string representing the hexadecimal value of a 160 bit checksum space https //docs ocient com/character and binary functions#e1eyc character and binary functions returns a string of repeated spaces equal to the number value, repeat split part https //docs ocient com/character and binary functions#0mwny character and binary functions split 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) startswith https //docs ocient com/character and binary functions#ifrwf character and binary functions returns true if string starts with substring and false otherwise strpos https //docs ocient com/character and binary functions#c8xqo character and binary functions equivalent to using locate as locate(substring, string) note the reversed argument order substr https //docs ocient com/character and binary functions#ysvy0 character and binary functions alias for substring substring https //docs ocient com/character and binary functions#smvvg character and binary functions returns the substring of a character or binary value to char https //docs ocient com/character and binary functions#uxg6v character and binary functions converts a numeric, date, or timestamp value into a char date type translate https //docs ocient com/character and binary functions#oqsoi character and binary functions replaces specified characters in a provided string with a separate set of characters trim https //docs ocient com/character and binary functions#8p8 k character and binary functions alias for btrim trim leading and trailing blanks from the string ucase https //docs ocient com/character and binary functions#9g59w character and binary functions alias for upper upper https //docs ocient com/character and binary functions#kdf0u character and binary functions convert string to upper case case https //docs ocient com/other functions and expressions#xqx3s conditional functions case operates similarly to conditional scripting in other programming languages, allowing it to function like an if / then / else statement or as a switch statement coalesce https //docs ocient com/other functions and expressions# twvc conditional functions evaluates to the first argument that is not null, or null if all arguments are null greatest https //docs ocient com/other functions and expressions#httsy conditional functions returns the largest non null value of all the arguments, or null if all the arguments are null if null https //docs ocient com/other functions and expressions#wrqbz conditional functions alias for coalesce least https //docs ocient com/other functions and expressions#2vczg conditional functions returns the smallest non null value of all arguments, or null if all arguments are null murmur3 https //docs ocient com/other functions and expressions#lhd1w conditional functions returns a 32 bit murmurhash3 hash of the input value as an integer data type https //github com/aappleby/smhasher/blob/master/readme md null if https //docs ocient com/other functions and expressions#wzyfr conditional functions returns the null value if two arguments are equal; otherwise, returns the first argument zn https //docs ocient com/other functions and expressions#b8ya5 conditional functions if x is null, returns 0 otherwise, returns x add months https //docs ocient com/date and time functions#oii n date and time functions adds the specified number of months to the date century https //docs ocient com/date and time functions# 0cdv date and time functions returns the number of centuries curdate https //docs ocient com/date and time functions#g8kn7 date and time functions alias for current date current date https //docs ocient com/date and time functions# 7lyn date and time functions returns the current date in the format yyyy mm dd current timestamp https //docs ocient com/date and time functions#ezfn0 date and time functions returns the current date and time as a timestamp value (e g , yyyy mm dd hh🇲🇲ss mmm) date part https //docs ocient com/date and time functions#ez2cl date and time functions alias for extract date trunc https //docs ocient com/date and time functions#pdylp date and time functions returns the date or timestamp entered, truncated to the specified precision dateadd https //docs ocient com/date and time functions#fcqyr date and time functions adds a specified number value (as a signed integer) to a specified date part of an input date value, and then returns that modified value datediff https //docs ocient com/date and time functions#rpffa date and time functions this function returns an int representing the difference between two date or time values in a specified date or time unit day https //docs ocient com/date and time functions# qyqw date and time functions alias for day of month day of month https //docs ocient com/date and time functions#iz i5 date and time functions extracts the day of month portion of a timestamp or date as an integer day of week https //docs ocient com/date and time functions#elj49 date and time functions returns an integer, in the range of 1 to 7, that represents the day of the week day of year https //docs ocient com/date and time functions#zqbwr date and time functions returns an integer in the range 1 to 366 that represents the day of the year decade https //docs ocient com/date and time functions#u0dqm date and time functions the decade is the year divided by 10 dow https //docs ocient com/date and time functions#ndy0j date and time functions alias for day of week doy https //docs ocient com/date and time functions#ntkkz date and time functions alias for day of year eomonth https //docs ocient com/date and time functions#ydmhm date and time functions returns the last day of the timestamp or date epoch https //docs ocient com/date and time functions#tokib date and time functions the number of seconds after 1970 01 01 00 00 00 utc extract https //docs ocient com/date and time functions#mh7gr date and time functions extract a component from a timestamp or date hour https //docs ocient com/date and time functions#6yqot date and time functions extracts the hour portion of a timestamp as an integer isdate https //docs ocient com/date and time functions#ono x date and time functions returns true if the input argument can be successfully cast to a date isodow https //docs ocient com/date and time functions#ccyhv date and time functions extracts the day of the week based on iso 8601, which ranges from monday (1) to sunday (7) makedatetime https //docs ocient com/date and time functions#1ilhp date and time functions returns a timestamp consisting of the specified date and time millisecond https //docs ocient com/date and time functions#wcjdl date and time functions extracts the millisecond portion of a timestamp as an integer minute https //docs ocient com/date and time functions#ufpkj date and time functions extracts the minute portion of a timestamp or date as an integer month https //docs ocient com/date and time functions# wdh0 date and time functions extracts the month portion of a timestamp or date as an integer month name https //docs ocient com/date and time functions#b5lba date and time functions returns the calendar name in english of the month for the specified date months between https //docs ocient com/date and time functions#gflzd date and time functions returns the difference between the two dates or timestamps in months as a double msecs https //docs ocient com/date and time functions#ryi1 date and time functions the seconds field, including fractional parts the function multiplies the seconds part of the value by 1,000 nanos to timestamp https //docs ocient com/date and time functions#qvdh6 date and time functions convert a number of nanoseconds into a timestamp equivalent to the duration after the epoch time next day https //docs ocient com/date and time functions#vzlbd date and time functions returns the closest date after a specified date that lies on a specific day of the week now https //docs ocient com/date and time functions#zzhsq date and time functions alias for current timestamp quarter https //docs ocient com/date and time functions#mp7 1 date and time functions returns an integer between 1 and 4 that represents the quarter of the year in which the specified date falls round https //docs ocient com/date and time functions#jayo1 date and time functions returns the specified date or timestamp, rounded to the specified precision second https //docs ocient com/date and time functions#nnjmm date and time functions extracts the seconds portion of a timestamp as an integer timestamp to nanos https //docs ocient com/date and time functions#qcm6u date and time functions convert timestamp into nanoseconds after epoch as bigint usecs https //docs ocient com/date and time functions#pasmr date and time functions the 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 week https //docs ocient com/date and time functions#7lvfb date and time functions returns the iso 8601 week number, as an integer, of the specified timestamp or date value year https //docs ocient com/date and time functions# mxpe date and time functions extracts the year portion of a timestamp or date as an integer to date https //docs ocient com/formatting functions#h9rnn formatting functions converts a character value with the specified format to a date type to number https //docs ocient com/formatting functions#2jgru formatting functions converts a character value with the specified format to a decimal type to timestamp https //docs ocient com/formatting functions#h4h6f formatting functions converts a character value with the specified format to a timestamp type st coorddim https //docs ocient com/attribute functions#8civl geospatial attribute functions alias for st ndims or st ndimension returns an integer of the coordinate dimension of the specified geography st dimension https //docs ocient com/attribute functions#edwwv geospatial attribute functions returns an integer that represents the dimension of the specified geography st geometrytype https //docs ocient com/attribute functions#b9qc4 geospatial attribute functions returns a string representing the geometry type of the input value st isempty https //docs ocient com/attribute functions#zb 0v geospatial attribute functions returns true if the specified geography value is empty, such as 'polygon empty' st memsize https //docs ocient com/attribute functions#viwyj geospatial attribute functions returns an integer representing the number of bytes in memory required to store the specified geography st ndimension https //docs ocient com/attribute functions#e510d geospatial attribute functions alias for st coorddim st ndims https //docs ocient com/attribute functions#e510d geospatial attribute functions alias for st coorddim st npoints https //docs ocient com/attribute functions#xr f1 geospatial attribute functions returns an integer representing the number of point values in a specified geography st numpoints https //docs ocient com/attribute functions#xr f1 geospatial attribute functions returns an integer representing the number of point values in a specified geography st srid https //docs ocient com/attribute functions#cmmog geospatial attribute functions returns the epsg code of the spatial reference identifier (srid) of the input geography st x https //docs ocient com/attribute functions#ujh7v geospatial attribute functions returns the x value of the specified point st xmax https //docs ocient com/attribute functions#xlkrv geospatial attribute functions returns the maximum x value of the specified geography st xmin https //docs ocient com/attribute functions#uw6gs geospatial attribute functions returns the minimum x value of the specified geography st y https //docs ocient com/attribute functions#rrn f geospatial attribute functions returns the y value of the specified point st ymax https //docs ocient com/attribute functions#c2ior geospatial attribute functions returns the maximum y value of specified geography st ymin https //docs ocient com/attribute functions# i5s0 geospatial attribute functions returns the minimum y value of specified geography st asbinary https //docs ocient com/conversion functions#ldhmh geospatial conversion functions returns the well known binary (wkb) representation of the specified geography alias of st aswkb st asewkt https //docs ocient com/conversion functions#tgipx geospatial conversion functions returns a string that represents geographic coordinates of a specified point in the specified format st asgeojson https //docs ocient com/conversion functions#vycvv geospatial conversion functions alias of st asbinary st aslatlontext https //docs ocient com/conversion functions#u1q s geospatial conversion functions returns the geojson representation of the specified geography using the ietf standards https //datatracker ietf org/doc/html/rfc7946 st astext https //docs ocient com/conversion functions#hgl1x geospatial conversion functions alias of st astext st aswkb https //docs ocient com/conversion functions#v kkz geospatial conversion functions alias of st astext st aswkt https //docs ocient com/conversion functions#f0nxy geospatial conversion functions alias of st aswkt and st ewkt returns the wkt representation of the specified geography st geohash https //docs ocient com/conversion functions#q58iy geospatial conversion functions returns a string that represents the geohash of the input point st addpoint https //docs ocient com/linestring functions#foii0 geospatial linestring constructor adds a point to the specified linestring at the specified 0 indexed location st endpoint https //docs ocient com/linestring functions#dh3ly geospatial linestring constructor returns the endpoint of a specified linestring the returned value is a point st linefromewkt https //docs ocient com/linestring constructors#x9idi geospatial linestring constructor creates a linestring from the specified char st linefromgeojson https //docs ocient com/linestring constructors#qdq7r geospatial linestring constructor creates a linestring represented by the specified geojson st linefromtext https //docs ocient com/linestring constructors#iar3u geospatial linestring constructor creates a linestring from a specified char the char must be a linestring value in wkt format st linefromwkb https //docs ocient com/linestring constructors#q1l 4 geospatial linestring constructor creates a linestring from the specified binary the binary value must be a linestring in wkb format st lineinterpolatepoint https //docs ocient com/linestring functions#x wa geospatial linestring constructor returns a point along a linestring based on a specified fraction of its total length st linelocatepoint https //docs ocient com/linestring functions#d2y0h geospatial linestring constructor similar to st lineinterpolatepoint, this function computes a fraction based on where a specified point is located along the length of a specified linestring st linestring https //docs ocient com/linestring constructors#ebpjz geospatial linestring constructor creates a linestring based on the specified inputs st linesubstring https //docs ocient com/linestring functions#oxtog geospatial linestring constructor returns a linestring that is a substring of a specified line that starts and ends at the specified fractions of its total length st makeline https //docs ocient com/linestring constructors#rws1u geospatial linestring constructor alias for st linestring st pointn https //docs ocient com/linestring functions# bw4x geospatial linestring constructor returns the point value at a specified index of the specified linestring st removepoint https //docs ocient com/linestring functions#kvxp7 geospatial linestring constructor removes a point value at a specified index from the specified line st setpoint https //docs ocient com/linestring functions#ibz1n geospatial linestring constructor replaces a point value in a specified linestring at a specified index the function returns the altered linestring with the replaced point st startpoint https //docs ocient com/linestring functions#h 5xu geospatial linestring constructor returns the starting point value of the line st centroid https //docs ocient com/point constructors#hxhyf geospatial point constructors the 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 geogpoint https //docs ocient com/point constructors#oah1p geospatial point constructors creates and returns a polygon geography with a single point, defined by the longitude and latitude specified for the function st makepoint https //docs ocient com/point constructors#gkzda geospatial point constructors alias for st point st point https //docs ocient com/point constructors#gmbuv geospatial point constructors creates a point from the specified input arguments st pointfromewkt https //docs ocient com/point constructors#4z6cg geospatial point constructors alias for st point creates a point using an ewkt formatted char as an input argument st pointfromgeohash https //docs ocient com/point constructors#i8vhl geospatial point constructors creates a point represented by the specified geohash st pointfromgeojson https //docs ocient com/point constructors#57hsc geospatial point constructors creates a point represented by the specified geojson value as an input argument st pointfromtext https //docs ocient com/point constructors#kzlh5 geospatial point constructors alias for st point(char) st pointfromwkb https //docs ocient com/point constructors#ghzzt geospatial point constructors alias for st point(binary) st forceccw https //docs ocient com/polygon constructors#l7 qg geospatial polygon constructors creates a standardized polygon from an existing one ocient® defines standardized as the exterior being counterclockwise (ccw) and all holes being clockwise (cw) oriented st makepolygon https //docs ocient com/polygon constructors#6pbpb geospatial polygon constructors alias for st polygon st polygon https //docs ocient com/polygon constructors#bo6zb geospatial polygon constructors creates a polygon st polygonfromewkt https //docs ocient com/polygon constructors#uoent geospatial polygon constructors creates a polygon using an ewkt formatted char as an input argument alias for the st polygon constructor st polygonfromgeojson https //docs ocient com/polygon constructors#dn7jn geospatial polygon constructors creates a polygon from the specified point, point array, linestring, or polygon geography st polygonfromtext https //docs ocient com/polygon constructors#bkcdd geospatial polygon constructors alias for st polygon(char) st polygonfromwkb https //docs ocient com/polygon constructors# geye geospatial polygon constructors alias for st polygon(binary) st wholeearth https //docs ocient com/polygon constructors#wyix0 geospatial polygon constructors returns the database internal representation of the whole earth polygon st angle https //docs ocient com/spatial measurement#yfbjl geospatial spatial measurement calculates the angle between two lines st area https //docs ocient com/spatial measurement#odfpu geospatial spatial measurement returns the area of the specified geospatial object in the specified unit of measurement st azimuth https //docs ocient com/spatial measurement#g1s g geospatial spatial measurement returns the azimuth of the line from point1 to point2 in radians st distance https //docs ocient com/spatial measurement#frzqn geospatial spatial measurement returns the minimum distance between the specified arguments st distancesphere https //docs ocient com/spatial measurement#3jwfn geospatial spatial measurement returns the minimum distance between the specified arguments using a spherical computation st distancespheroid https //docs ocient com/spatial measurement#9zrgm geospatial spatial measurement returns the minimum distance between the specified arguments using a spheroid computation st euclideandistance3d https //docs ocient com/spatial measurement#hervh geospatial spatial measurement returns the minimum distance between two geospatial points with altitude values st hausdorffdistance https //docs ocient com/spatial measurement#p c1k geospatial spatial measurement returns the hausdorff distance between two geographies in a specified measurement st length https //docs ocient com/spatial measurement#jpgoz geospatial spatial measurement returns the length of the specified line in the specified measurement unit st length2d https //docs ocient com/spatial measurement#ihut geospatial spatial measurement alias for st length st maxdistance https //docs ocient com/spatial measurement#phlaj geospatial spatial measurement returns maximum distance between the specified arguments st minimumdistancetosurface https //docs ocient com/spatial measurement#1mqxj geospatial spatial measurement calculates the shortest distance between any point along a euclidean line segment in three dimensional space and the surface of the earth st perimeter https //docs ocient com/spatial measurement#yakxo geospatial spatial measurement returns the length of the exterior (outer ring) of the polygon in the specified unit of measurement st perimeter2d https //docs ocient com/spatial measurement#b0b5l geospatial spatial measurement alias for st perimeter st boundingdiagonal https //docs ocient com/spatial operators#wcgia geospatial spatial operators returns the diagonal linestring from the minimum point to the maximum point of the bounding box that st envelope returns st buffer https //docs ocient com/spatial operators#ecru geospatial spatial operators returns a geography that contains all points where the distance from the geography is less than or equal to the specified distance st closestpoint https //docs ocient com/spatial operators#qwvfh geospatial spatial operators returns the two dimensional point of one specified geospatial object that is closest to a second specified geospatial object st convexhull https //docs ocient com/spatial operators#ptnel geospatial spatial operators the convex hull is the smallest convex geometry that encloses the input geometry st differencearray https //docs ocient com/spatial operators#scdcb geospatial spatial operators returns 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 envelope https //docs ocient com/spatial operators#wkicv geospatial spatial operators returns a polygon that represents the minimum bounding box for the specified geography st expand https //docs ocient com/spatial operators#bgwcw geospatial spatial operators returns the bounding box of a specified geospatial value, which is expanded by a specified length st exteriorring https //docs ocient com/spatial operators#uxqis geospatial spatial operators returns a linestring that represents the exterior ring of a provided polygon value st flipcoordinates https //docs ocient com/spatial operators#ekvrp geospatial spatial operators returns a new geographic object with the x and y coordinates switched using the specified argument st force2d https //docs ocient com/spatial operators#l7yes geospatial spatial operators convert a geographic object into a two dimensional geography st interiorringn https //docs ocient com/spatial operators#s7zkd geospatial spatial operators returns a linestring representing the interior ring of the specified polygon, which is specified by its index (1 indexed) st intersectall https //docs ocient com/spatial operators#ymwul geospatial spatial operators returns the intersection of all geographies in the specified array all geographies in the array must be the same type st intersectionarray https //docs ocient com/spatial operators#8jwir geospatial spatial operators returns a geography that represents the point set intersection of two geographies st longestline https //docs ocient com/spatial operators#3iz1q geospatial spatial operators returns the longest linestring between two specified geospatial arguments st makeenvelope https //docs ocient com/spatial operators#defdz geospatial spatial operators returns a polygon with vertices that represent the minimum bounding box for the specified coordinates st minimumboundingcircle https //docs ocient com/spatial operators#fpi0l geospatial spatial operators returns the smallest circle polygon that contains the specified geographic object st multidifferencearray https //docs ocient com/spatial operators#d1pyi geospatial spatial operators returns 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 multiintersectionarray https //docs ocient com/spatial operators#133ti geospatial spatial operators when you specify two arrays of geospatial objects, this function returns an array of any intersections st multisymdifferencearray https //docs ocient com/spatial operators#ml5tm geospatial spatial operators when you specify two arrays of geospatial objects, this function returns an array of any geospatial values that do not intersect st multiunionarray https //docs ocient com/spatial operators#pfgmy geospatial spatial operators when you specify two arrays of geospatial objects, this function returns one array that represents a union of all geographies in both arrays st nrings https //docs ocient com/spatial operators#sfvut geospatial spatial operators returns the number of rings of the specified polygon, including both interior and exterior rings st numinteriorring https //docs ocient com/spatial operators#jueb9 geospatial spatial operators returns the number of interior rings of the specified polygon st numinteriorrings https //docs ocient com/spatial operators#jueb9 geospatial spatial operators returns the number of interior rings of the specified polygon st pointonsurface https //docs ocient com/spatial operators#kit l geospatial spatial operators returns a point guaranteed to intersect the specified geospatial object st project https //docs ocient com/spatial operators#srzq0 geospatial spatial operators returns a point by projecting a distance and an azimuth value from the specified starting point value st reduceprecision https //docs ocient com/spatial operators#xmv2t geospatial spatial operators returns a new geospatial object with all point values rounded to the specified decimal precision st removerepeatedpoints https //docs ocient com/spatial operators#pf3t1 geospatial spatial operators returns a new geospatial object with no repeated point values st reverse https //docs ocient com/spatial operators#rxt6z geospatial spatial operators returns a new geospatial object with the vertexes reversed st segmentize https //docs ocient com/spatial operators#irtd8 geospatial spatial operators returns a geospatial object that the function modifies to have no segment longer than the specified max segment length in meters st shortestline https //docs ocient com/spatial operators#rxw4c geospatial spatial operators returns the shortest linestring between two specified geospatial arguments st simplify https //docs ocient com/spatial operators#3xjsg geospatial spatial operators returns a simplified version of the specified geography, which is either a point or linestring st simplifyarray https //docs ocient com/spatial operators#zxrjq geospatial spatial operators returns a polygon array that represents a simplified version of the specified geography, which is either a point, linestring, or polygon st snaptogrid https //docs ocient com/spatial operators#jmvec geospatial spatial operators returns a new geography value with all point values rounded to the specified precisions st symdifferencearray https //docs ocient com/spatial operators#ashih geospatial spatial operators returns a geographic array that contains the parts that are not common between two geographic objects, geo1 and geo2 st unionarray https //docs ocient com/spatial operators#tinux geospatial spatial operators performs a union of the input geography values to produce a geographic array st clusterdbscan https //docs ocient com/spatial relationships#yrsp2 geospatial spatial relationships returns 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 https //en wikipedia org/wiki/dbscan st contains https //docs ocient com/spatial relationships#pkyhf geospatial spatial relationships returns true if the first geographic argument, geo1, contains the second geographic argument, geo2 st containsproperly https //docs ocient com/spatial relationships#ed7pc geospatial spatial relationships returns true if geo2 lies entirely in the interior of geo1 and does not intersect or touch the boundary or exterior points st coveredby https //docs ocient com/spatial relationships#rr dn geospatial spatial relationships returns true if no point in geo1 is outside of geo2 st covers https //docs ocient com/spatial relationships#tcwrq geospatial spatial relationships returns true if no point in geo2 is outside of geo1 st crosses https //docs ocient com/spatial relationships#vnt7y geospatial spatial relationships returns 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 disjoint https //docs ocient com/spatial relationships# 2yqz geospatial spatial relationships returns true if the specified geographies have no intersection, including boundaries both geographic arguments can be different types st dwithin https //docs ocient com/spatial relationships#wfmma geospatial spatial relationships returns true if the geographies are within a specified distance in meters st equals https //docs ocient com/spatial relationships#n4bni geospatial spatial relationships returns true if both geographies are spatially equal st intersects https //docs ocient com/spatial relationships#ss1la geospatial spatial relationships returns true if the specified geographies have intersection, including boundaries st isccw https //docs ocient com/spatial relationships#syr0i geospatial spatial relationships alias for st ispolygonccw st isclosed https //docs ocient com/spatial relationships#vxfkx geospatial spatial relationships returns true if an input polygon has an exterior that is counter clockwise st ispolygonccw https //docs ocient com/spatial relationships#k3i4m geospatial spatial relationships returns true if an input linestring has starting and ending points that are equal st ispolygoncw https //docs ocient com/spatial relationships#nby 1 geospatial spatial relationships returns true if an input polygon has an exterior that is clockwise st isring https //docs ocient com/spatial relationships#8jbbm geospatial spatial relationships returns true if the specified linestring is closed and does not intersect itself st issimple https //docs ocient com/spatial relationships#udejb geospatial spatial relationships for 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 isvalid https //docs ocient com/spatial relationships#yfeph geospatial spatial relationships returns true if the specified geospatial value is a well formed and valid geography according to the ogc standards https //www ogc org/standard/sfa/ st overlaps https //docs ocient com/spatial relationships#zejvi geospatial spatial relationships returns true if both geographic arguments are of the same dimension and they intersect each other, but neither contains the other st pointinsidecircle https //docs ocient com/spatial relationships#vfqoe geospatial spatial relationships returns true if the geographic object is inside a circle that is centered at the specified point coordinates and with the specified radius spatial relationships docid\ cai7h lh9vyvdihc8nrh geospatial spatial relationships returns the de 9im intersection string that represents the nature of the intersection with the specified geographies st touches https //docs ocient com/spatial relationships#nd7i5 geospatial spatial relationships returns true if the only point values in common between the two geographic arguments lie in the union of their boundaries st within https //docs ocient com/spatial relationships#gg mq geospatial spatial relationships alias for st contains st distance https //docs ocient com/spatiotemporal measurement#mbv7i geospatial spatiotemporal measurement returns the two dimensional interpolated minimum simultaneous distance between two linestring timestamp array pairs in the specified unit of measurement st intersection https //docs ocient com/spatiotemporal operators#b1d7d geospatial spatiotemporal measurement returns a tuple that represents the intersection of a spatiotemporal linestring with a static geography st linegetalltimesatpoint https //docs ocient com/spatiotemporal operators#pshgp geospatial spatiotemporal measurement returns a timestamp array of all times when the specified linestring value intersects the specified point value st linegetpointattime https //docs ocient com/spatiotemporal operators#k17o7 geospatial spatiotemporal measurement returns a point within the bounds of the specified linestring that corresponds to the interpolated point at the specified timestamp value st linegettimeatpoint https //docs ocient com/spatiotemporal operators#jzmk geospatial spatiotemporal measurement returns the interpolated time of the specified point on the specified linestring that is paired with a timestamp array st longestline https //docs ocient com/spatiotemporal operators#b0irl geospatial spatiotemporal measurement with 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 maxdistance https //docs ocient com/spatiotemporal measurement#w9jwl geospatial spatiotemporal measurement returns the two dimensional interpolated maximum cotemporal distance between two linestring timestamp array pairs in the specified unit of measurement st shortestline https //docs ocient com/spatiotemporal operators#77vdg geospatial spatiotemporal measurement when 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 totalsecondsinintersection https //docs ocient com/spatiotemporal measurement#zzjsu geospatial spatiotemporal measurement returns the total number of seconds spent in the intersection result calculated by the spatiotemporal version of st intersection hll sketch create https //docs ocient com/hyperloglog functions#ca6io hyperloglog functions creates 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 estimate https //docs ocient com/hyperloglog functions#kulae hyperloglog functions the 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 bound https //docs ocient com/hyperloglog functions#m0o46 hyperloglog functions takes 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 string https //docs ocient com/hyperloglog functions# m71a hyperloglog functions the 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 https //docs ocient com/hyperloglog functions#kyvht hyperloglog functions merges 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) https //docs ocient com/hyperloglog functions#ht0cw hyperloglog functions merges 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 abs https //docs ocient com/math functions and operators#81xj5 math functions returns the absolute value of a specified floating point number acos https //docs ocient com/math functions and operators#junsx math functions returns the inverse cosine of a specified floating point number acosh https //docs ocient com/math functions and operators#ioc0p math functions returns the hyperbolic arc cosine of a specified floating point number asin https //docs ocient com/math functions and operators#n0xut math functions returns the inverse sine of a specified floating point number asinh https //docs ocient com/math functions and operators#ymojg math functions returns the hyperbolic arc sine of a specified floating point number atan https //docs ocient com/math functions and operators#mgtmy math functions returns the inverse tangent of a specified floating point number atan2 https //docs ocient com/math functions and operators#t6vzw math functions returns the inverse tangent of two numeric, floating point values atanh https //docs ocient com/math functions and operators#8uybq math functions returns the hyperbolic arc tangent of a specified floating point number bicdf https //docs ocient com/math functions and operators#wffuo math functions the cumulative distribution function of the standard bivariate normal distribution bipdf https //docs ocient com/math functions and operators#e2jo6 math functions the probability density function of the standard bivariate normal distribution bitand https //docs ocient com/math functions and operators#ancrp math functions alias for the bitfunc syntax bitfunc('and', x, y) bitfunc https //docs ocient com/math functions and operators#zi1nv math functions performs a variety of bit operations can be any of these string literals 'and' , 'or' , or 'xor' bitnot https //docs ocient com/math functions and operators#fzlqt math functions returns the bitwise negation of integral x bitor https //docs ocient com/math functions and operators# iimb math functions alias for the bitfunc syntax bitfunc('or', x, y) bitxor https //docs ocient com/math functions and operators#gsh5s math functions alias for the bitfunc syntax bitfunc('xor', x, y) booland https //docs ocient com/math functions and operators# ndel math functions alias for the boolfunc syntax boolfunc('and', x, y) boolfunc https //docs ocient com/math functions and operators#uktjx math functions performs a boolean logical evaluation on arguments x and y can be any of these string literals 'and' , 'or' , or 'xor' boolnot https //docs ocient com/math functions and operators#a2ksi math functions returns the logical negation of the boolfunc function boolor https //docs ocient com/math functions and operators#uayrm math functions alias for the boolfunc syntax boolfunc('or', x, y) boolxor https //docs ocient com/math functions and operators#ykq4j math functions alias for the boolfunc syntax boolfunc('xor', x, y) cbrt https //docs ocient com/math functions and operators#yiewv math functions returns the cube root of the numeric value x cdf https //docs ocient com/math functions and operators#62kpm math functions the cumulative distribution function of the standard normal distribution returns the probability that a random sample is less than or equal to the specified value ceil https //docs ocient com/math functions and operators#xtoze math functions returns the nearest integer greater than or equal to x ceiling https //docs ocient com/math functions and operators#p4t0q math functions alias for ceil cos https //docs ocient com/math functions and operators#xlkbe math functions returns the cosine of x cosh https //docs ocient com/math functions and operators#74yqi math functions returns the hyperbolic cosine of x cot https //docs ocient com/math functions and operators#lvtj6 math functions returns the cotangent of x degrees https //docs ocient com/math functions and operators#ldgtm math functions returns the corresponding angle in degrees for x in radians div https //docs ocient com/math functions and operators#6tq8z math functions returns the result of x divided by y if y is zero, returns null erf https //docs ocient com/math functions and operators#nt93f math functions the error function is used for measurements that follow a normal distribution erfc https //docs ocient com/math functions and operators#ckbfz math functions the complement of the error function erfc(x) = 1 erf(x) exp https //docs ocient com/math functions and operators#djzby math functions returns the exponential of x (e raised to the power of x) floor https //docs ocient com/math functions and operators#m8ugb math functions returns the nearest integer less than or equal to x gamma https //docs ocient com/math functions and operators#iefyy math functions gamma function https //en wikipedia org/wiki/gamma function hexbinx https //docs ocient com/math functions and operators#xdhi math functions returns the x coordinate of the center of the nearest hexagonal bin to the point (x, y) hexbiny https //docs ocient com/math functions and operators#mvl50 math functions returns the y coordinate of the center of the nearest hexagonal bin to the point (x, y) ierf https //docs ocient com/math functions and operators#nng a math functions the inverse of the erf error function ierfc https //docs ocient com/math functions and operators#lgkj6 math functions the inverse of the complement of the error function leakyrelu https //docs ocient com/math functions and operators#dbq2o math functions returns the leaky rectified linear unit function of x left shift https //docs ocient com/math functions and operators#v55 4 math functions returns x shifted to the left by y bits ln https //docs ocient com/math functions and operators#cyijm math functions returns the natural logarithm of x log https //docs ocient com/math functions and operators#efvuc math functions returns 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 gamma https //docs ocient com/math functions and operators#5e7oq math functions the natural logarithm of the absolute value of the gamma function log2 https //docs ocient com/math functions and operators#eonbt math functions returns the base 2 logarithm of x mod https //docs ocient com/math functions and operators#rndr math functions returns the remainder from x divided by y pi https //docs ocient com/math functions and operators#uufx math functions returns the constant value of π pmod https //docs ocient com/math functions and operators#1wvow math functions returns the smallest non negative equivalence class of x % y power https //docs ocient com/math functions and operators#d5tj4 math functions returns x raised to the power of y probit https //docs ocient com/math functions and operators#p7lbt math functions the inverse of the cumulative distribution function radians https //docs ocient com/math functions and operators#vu7bi math functions returns the corresponding angle in radians for x in degrees rand https //docs ocient com/math functions and operators#j3jjt math functions takes no argument and returns a random double value in the range \[0, 1) relu https //docs ocient com/math functions and operators#pcyvj math functions returns the rectified linear unit function of x right shift https //docs ocient com/math functions and operators#a3c4x math functions returns x shifted to the right by y bits round https //docs ocient com/math functions and operators#kch1q math functions returns x rounded to the nearest integer sign https //docs ocient com/math functions and operators#i8hpi math functions returns the positive (+1), zero (0), or negative ( 1) sign of x sin https //docs ocient com/math functions and operators#v zfo math functions returns the sine of x sinh https //docs ocient com/math functions and operators#i c18 math functions returns the hyperbolic sine of x sqrt https //docs ocient com/math functions and operators#m5azx math functions returns the square root of x square https //docs ocient com/math functions and operators#xdty2 math functions returns the square of x tan https //docs ocient com/math functions and operators#oniqb math functions returns the tangent of x tanh https //docs ocient com/math functions and operators#blv9a math functions returns the hyperbolic tangent of x trunc https //docs ocient com/math functions and operators#qywhl math functions returns x truncated to y decimal places truncate https //docs ocient com/math functions and operators#9mx3f math functions alias for trunc abs https //docs ocient com/matrix functions and operators matrix functions returns magnitude of one dimensional matrix or vector cross entropy loss https //docs ocient com/matrix functions and operators matrix functions returns the cross entropy loss of two one dimensional matrixes or vectors det https //docs ocient com/matrix functions and operators matrix functions returns the determinant of the matrix as a double dot https //docs ocient com/matrix functions and operators matrix functions returns dot product of two one dimensional matrixes/vectors eigen https //docs ocient com/matrix functions and operators matrix functions returns eigenvalues and eigenvalues of a square matrix as a vector of pairs frobenius https //docs ocient com/matrix functions and operators matrix functions returns the frobenius norm of a matrix hinge loss https //docs ocient com/matrix functions and operators matrix functions returns the hinge loss of two one dimensional matrixes or vectors identity matrix https //docs ocient com/matrix functions and operators matrix functions returns an identity matrix of the specified dimension inverse https //docs ocient com/matrix functions and operators matrix functions returns inverse of a square, invertible matrix log loss https //docs ocient com/matrix functions and operators matrix functions returns the log loss of two one dimensional matrixes or vectors logits loss https //docs ocient com/matrix functions and operators matrix functions returns the logits loss of two one dimensional matrixes or vectors lupq decomp https //docs ocient com/matrix functions and operators matrix functions returns lupq decomposition of a square matrix a as a tuple of 4 matrixes where paq = lu matrix dim matrix functions returns the dimensions of the specified matrix as a tuple of (row, col) integers make matrix ixj https //docs ocient com/matrix functions and operators#ggbhi matrix functions creates an ixj matrix with elements e 00 , … , e ij matrix from text https //docs ocient com/matrix functions and operators matrix functions creates a matrix from the specified string matrix trace https //docs ocient com/matrix functions and operators matrix functions returns trace of a square matrix as a double null matrix https //docs ocient com/matrix functions and operators matrix functions returns a null matrix of the specified (row, col) dimensions qr decomp https //docs ocient com/matrix functions and operators matrix functions returns qr decomposition of a matrix as a tuple of 2 matrixes softmax https //docs ocient com/matrix functions and operators matrix functions returns the softmax of a one dimensional matrix or vector svd decomp https //docs ocient com/matrix functions and operators matrix functions returns svd decomposition of a matrix as a tuple of 3 matrixes transpose https //docs ocient com/matrix functions and operators matrix functions returns transpose of the matrix vector argmax https //docs ocient com/matrix functions and operators matrix functions returns the argmax of a one dimensional matrix or vector vector argmin https //docs ocient com/matrix functions and operators matrix functions returns the argmin of a one dimensional matrix or vector vector max https //docs ocient com/matrix functions and operators matrix functions returns the maximum of elements in a one dimensional matrix/vector vector min https //docs ocient com/matrix functions and operators matrix functions returns the minimum of elements in a one dimensional matrix/vector vector sum https //docs ocient com/matrix functions and operators matrix functions returns the sum of elements in a one dimensional matrix/vector zero matrix https //docs ocient com/matrix functions and operators matrix functions returns a zero matrix of the given (row, col) dimensions ip https //docs ocient com/network type functions#yssyu network type functions casts an ip data type from an ipv4 data type expression ipv4 https //docs ocient com/network type functions#ygasp network type functions casts an ipv4 address from an ipv6 address is ipv4 network type functions t ests whether the database can convert the ip value to the ipv4 data type subnet network type functions c omputes the prefix from an ip or ipv4 value and the size of the prefix bigint https //docs ocient com/scalar data conversion functions scalar data conversion functions casts the argument to a value of type bigint binary https //docs ocient com/scalar data conversion functions scalar data conversion functions parses a hexadecimal string (such as 0x54ab) to create a binary value letters can be of either case boolean https //docs ocient com/scalar data conversion functions scalar data conversion functions parses a string to create a boolean value the string must contain either true or false it is case insensitive byte https //docs ocient com/scalar data conversion functions scalar data conversion functions casts the argument to a value of type byte char https //docs ocient com/scalar data conversion functions scalar data conversion functions creates a string version of the numeric value date https //docs ocient com/scalar data conversion functions scalar data conversion functions parses a string in the form 'yyyy mm dd' to create a date extra characters are ignored days https //docs ocient com/scalar data conversion functions scalar data conversion functions converts an integral value to an interval value of type days to be used in date calculations decimal https //docs ocient com/scalar data conversion functions scalar data conversion functions casts the argument to a value of type decimal double https //docs ocient com/scalar data conversion functions scalar data conversion functions casts the argument to a value of type double float https //docs ocient com/scalar data conversion functions scalar data conversion functions casts the argument to a value of type float hash https //docs ocient com/scalar data conversion functions scalar data conversion functions creates 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 hours https //docs ocient com/scalar data conversion functions scalar data conversion functions converts an integral value to an interval value of type hours integer https //docs ocient com/scalar data conversion functions scalar data conversion functions casts the argument to a value of type integer ip https //docs ocient com/scalar data conversion functions scalar data conversion functions creates a value of type ipv4 or ipv6 from a string ipv4 https //docs ocient com/scalar data conversion functions scalar data conversion functions parses a string containing an ip address and creates a value of type ipv5 microseconds https //docs ocient com/scalar data conversion functions scalar data conversion functions converts an integral value to an interval value of type microseconds milliseconds https //docs ocient com/scalar data conversion functions scalar data conversion functions converts an integral value to an interval value of type milliseconds minutes https //docs ocient com/scalar data conversion functions scalar data conversion functions converts an integral value to an interval value of type minutes months https //docs ocient com/scalar data conversion functions scalar data conversion functions converts an integral value to an interval value of type months to be used in date calculations nanoseconds https //docs ocient com/scalar data conversion functions scalar data conversion functions converts an integral value to an interval value of type nanoseconds seconds https //docs ocient com/scalar data conversion functions scalar data conversion functions converts an integral value to an interval value of type seconds smallint https //docs ocient com/scalar data conversion functions scalar data conversion functions casts the argument to a value of type smallint time https //docs ocient com/scalar data conversion functions scalar data conversion functions parses the string to create a time value the string must be in the form 'hh\ mm\[ sssssssss]' timestamp https //docs ocient com/scalar data conversion functions scalar data conversion functions parses a string and makes a timestamp value the string must be in the format 'yyyy mm dd\[ hh\ mm]\[ sssssssss]' uuid https //docs ocient com/scalar data conversion functions scalar data conversion functions parses the string and makes a uuid value the string must be a valid uuid weeks https //docs ocient com/scalar data conversion functions scalar data conversion functions converts an integral value to an interval value of type weeks to be used in date calculations years https //docs ocient com/scalar data conversion functions scalar data conversion functions converts an integral value to an interval value of type years array agg https //docs ocient com/sorted aggregate functions sorted aggregate functions returns an array containing every row from the expression string agg https //docs ocient com/sorted aggregate functions sorted aggregate functions returns a string concatenated from every row from the expression the delimiter argument is optional array cap special data pipeline transformation functions restrict the length of an array to a maximum number of elements array compact special data pipeline transformation functions removes null values from the array array contains special data pipeline transformation functions returns true if the array contains the specified value array distinct special data pipeline transformation functions return all unique values in an array array sort special data pipeline transformation functions sort and return the input array based on the natural ordering of its elements or the specified lambda function explode outer https //docs ocient com/special data pipeline transformation functions#mv3 n special data pipeline transformation functions expands a one dimensional or multidimensional array into its elements with one element per row of output from the system filter https //docs ocient com/special data pipeline transformation functions#liutw special data pipeline transformation functions filters elements in an array based on the logic in a lambda expression flatten special data pipeline transformation functions transforms an n dimensional array into an n 1 dimensional array if special data pipeline transformation functions returns t if the expression x evaluates to true , or the function returns f if x evaluates to false metadata special data pipeline transformation functions extracts the metadata value for the specified key from available metadata for the pipeline parse delimited array special data pipeline transformation functions converts a string of text data representing an array into a char\[] to array length special data pipeline transformation functions create the specified number of copies of any json object in an array transform https //docs ocient com/special data pipeline transformation functions#kujla special data pipeline transformation functions transforms an array based on the logic in a lambda expression width bucket special data pipeline transformation functions creates n equal width buckets in the range \[min,max) as a histogram zip with https //docs ocient com/special data pipeline transformation functions#yc d5 special data pipeline transformation functions merges two or more input arrays, element wise, into a single array using the trailing combining function commit https //docs ocient com/other functions and expressions#ophfv system functions returns the most recent commit hash of the database to which the client is currently connected current database https //docs ocient com/other functions and expressions#xiqyl system functions alias for database current node https //docs ocient com/other functions and expressions#nmz92 system functions returns 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 id https //docs ocient com/other functions and expressions#lo34i system functions returns the identifier of the sql node where the current query executes current schema https //docs ocient com/other functions and expressions#nk7km system functions returns the name of the current schema current system https //docs ocient com/other functions and expressions#dxe8v system functions returns the name of the system current user https //docs ocient com/other functions and expressions#uuzm2 system functions returns the user for the current connection database https //docs ocient com/other functions and expressions#ckuy8 system functions returns the name of the database to which the client is currently connected show https //docs ocient com/other functions and expressions#dl vh system functions the show function enables you to explore the database and its metadata for user defined items version https //docs ocient com/other functions and expressions#tdnug system functions returns the version of the database to which the client is currently connected unnest https //docs ocient com/table valued functions array functions expand each element in an input array out to an individual row convert local timestamp to utc https //docs ocient com/time zone functions#i6hdn time zone functions the function converts a timestamp in a specified local time zone to the utc time zone convert utc timestamp to local https //docs ocient com/time zone functions#eue6i time zone functions the function converts a timestamp from the utc time zone to a specified local time zone cast to tuple https //docs ocient com/tuple functions and operators#ii1hv tuple functions converts a tuple into another tuple of a different type char https //docs ocient com/tuple functions and operators#ii1hv tuple functions converts a tuple to its string representation string to tuple https //docs ocient com/tuple functions and operators#ii1hv tuple functions converts the string representation of a tuple (e g 'tuple<\<int,bigint,char>>(1,2,null)') into a tuple tuple() https //docs ocient com/tuple functions and operators#ii1hv tuple functions construct a tuple of specified elements types of the tuple are inferred from the inner elements tuple<<>> https //docs ocient com/tuple functions and operators#ii1hv tuple functions construct a tuple of specified elements null is also supported as an element cume dist https //docs ocient com/window aggregate functions#ttnh4 window aggregate functions returns 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 delta https //docs ocient com/window aggregate functions#uox69 window aggregate functions computes 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 rank https //docs ocient com/window aggregate functions#qm dn window aggregate functions assigns a number to each row in the result set with equal values having the same number there will be no gaps between ranks derivative https //docs ocient com/window aggregate functions#aaz8y window aggregate functions computes the difference quotient between successive values of expression with respect to expression2 first value https //docs ocient com/window aggregate functions#8mjzl window aggregate functions returns the first value in the ordered result set lag https //docs ocient com/window aggregate functions#ooaer window aggregate functions returns the row which is the specified number backward from the current row default is 1 if offset is omitted last value https //docs ocient com/window aggregate functions# 3jqe window aggregate functions returns the last value in the ordered result set lead https //docs ocient com/window aggregate functions#dvmj6 window aggregate functions returns the row which is the specified number forward from the current row default is 1 if offset is omitted nth value https //docs ocient com/window aggregate functions#ctylw window aggregate functions returns the nth value in the ordered result set percent rank https //docs ocient com/window aggregate functions#a2vai window aggregate functions the 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 percentile https //docs ocient com/window aggregate functions#fphge window aggregate functions returns the value that corresponds to the specified percentile (0 ≤ n ≤ 1) within the group rank https //docs ocient com/window aggregate functions#ido8v window aggregate functions assigns a number to each row in the result set with equal values having the same number there can be gaps between ranks ratio to report https //docs ocient com/window aggregate functions#hyx0c window aggregate functions computes the ratio of a value to the sum of the set of values row number https //docs ocient com/window aggregate functions#rdl6i window aggregate functions assigns a unique number to each row in the result set zscore https //docs ocient com/window aggregate functions#0glyf window aggregate functions zscore of the sample based on the stddev() function zscorep https //docs ocient com/window aggregate functions#d2ogs window aggregate functions zscore of the sample based on the stddevp() function