Function total table¶
This document lists the function supported by the latest version of MatrixOne.
Aggregation Function¶
Function Name |
Function |
|---|---|
Optional value in the parameter range to return |
|
Calculate the arithmetic average of the parameter column. |
|
A set of built-in functions for processing bitmaps, mainly used to calculate different values |
|
Calculate the bitwise and |
|
Calculate the bitwise or |
|
Calculate the bitwise XOR of all bits in the column |
|
The number of records of query results was calculated |
|
Join together content specified by columns or expressions |
|
Returns the maximum value of a set of values |
|
Returns the median value of a set of values |
|
Returns the minimum value of a set of values |
|
Used to calculate the population standard deviation |
|
Used to calculate the sum of a set of values |
|
Used to calculate the population variance |
|
Used to calculate the population variance |
Date and time class function¶
Function Name |
Function |
|---|---|
Used to convert a given date time from one time zone to another. |
|
Return the value in the current date in YYYY-MM-DD format |
|
Return the current date and time in the format of YYYY-MM-DD hh:mm:ss or YYYYMMDDhhmmss |
|
Seave the date part in the input in DATE or DATETIME format. |
|
Used to perform date operations: add the specified time interval from the specified date |
|
Format date value according to format string |
|
Used to perform date operation: subtract the specified time interval from the specified date |
|
Returns the number of days between two dates |
|
Return to the date of the month |
|
Return the number of days in one year corresponding to the date |
|
Extract some content from date |
|
Return the number of hours of time |
|
Convert the internal UNIX timestamp value to a date and time value in normal format, and display it in YYYY-MM-DD HH:MM:SS or YYYYMMDDHHMMSS format |
|
Return the minute of the time parameter |
|
Return the month of the date parameter |
|
Returns the value in the ‘YYY-MM-DD HH:MM:SS’ format of the current date and time. |
|
Return the number of seconds of the time parameter |
|
Convert string to date or date time type according to the specified date or time display format |
|
Returns the value in the ‘YYY-MM-DD HH:MM:SS’ format of the current date and time. |
|
Extract the time part of the time or date time and return it as a string |
|
Return the difference between two time parameters |
|
Return the date or date time parameter as date time value |
|
Returns an integer representing the time interval between the first date-time expression and the second date-time expression within a given time unit |
|
Convert string to date or date time type according to the specified date or time display format |
|
Used to calculate the number of days difference between a given date and the start date of the calendar (January 1, 0000) |
|
Used to calculate the difference in seconds between a given date or date time expr and January 1, 0 AD 0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0: |
|
Returns the number of seconds from 1970-01-01 00:00:00 UTC to the specified time |
|
Return the current UTC time in the format of YYYY-MM-DD hh:mm:ss or YYYYMMDDhhmmss |
|
Used to calculate the number of weeks for a given date |
|
Return the index of the working day of the date (0 = Monday, 1 = Tuesday, … 6 = Sunday) |
|
Returns the year of the given date |
Mathematical function¶
Function Name |
Function |
|---|---|
Used to find the absolute value of the parameter |
|
Used to find the cosine (in radians) of a given value |
|
Used to find the arctangent of a given value (in radians) |
|
Used to find the minimum integer not smaller than the parameter |
|
Used to find the minimum integer not smaller than the parameter |
|
Used to find the cosine value of the input parameter (denoted in radians) |
|
Used to find the cotangent value of the input parameter (denoted in radians) |
|
Used to find the corresponding digit not greater than a certain number |
|
Used to find the natural logarithm of the parameters |
|
Used to find the natural logarithm of the parameters |
|
Used to find the logarithm of the base 2 parameter |
|
Used to find the logarithm of the base 10 parameter |
|
Used to find mathematical constant π (pi) |
|
POWER(X, Y) is used to find the Y power index value of X |
|
Used to find the value of a number after rounding a specific digit |
|
Used to generate a random number of Float64 type between 0 and 1 |
|
Used to find the sine value of the input parameter (denoted in radians) |
|
Used to find the hyperbolic sine value of the input parameters (denoted in radians) |
|
Used to find the tangent value of the input parameter (denoted in radians). |
String class function¶
Function Name |
Function |
|---|---|
Convert the parameter to a binary string form. |
|
Returns the length of the string str, in bit. |
|
Return the length of the string str in characters |
|
Concatenate multiple strings (or only one string) into one string |
|
Represents Concatenate With Separator, which is a special form of CONCAT(). |
|
Determine whether the entered string is empty. |
|
Check whether it ends with the specified suffix. |
|
Returns the position of the first string str in the string list (str1,str2,str3,…) |
|
Find the location of the specified string in a comma-separated list of strings. |
|
Used to set the number format to “#,###,##.##” format and round to one after the decimal point. |
|
Used to convert Base64-encoded strings back to original binary data (or text data). |
|
Return the hexadecimal string form of the parameter |
|
Returns the location where the substring first appears in the given string. |
|
Used to convert the given string to lowercase. |
|
Returns the leftmost length character in the str string. |
|
Returns the length of the string. |
|
Function used to find the location of a substring in a string. |
|
Used to convert the given string to lowercase. |
|
Used to fill on the left side of the string. |
|
Remove the front space of the input string and return the processed characters. |
|
Generates an input string to a 32-character hexadecimal MD5 hash value. |
|
String that returns the octal value of the parameter |
|
Used to repeat the entered string n times and return a new string |
|
Flip the characters in the str string in order to output. |
|
Used to fill on the right side of the string |
|
Remove the space behind the input string |
|
Used to calculate and return the SHA-1 hash value of the given string. |
|
Returns the SHA2 hash value of the input string. |
|
Returns a string composed of N spaces. |
|
Used to break a string into parts based on a given separator |
|
String returns 1 if it starts with the specified prefix, otherwise returns 0. |
|
Returns a substring starting from the specified location |
|
Get characters of different index bits with the delimiter as the index. |
|
String used to convert strings to Base64 encoded strings |
|
Returns a string, deleting unwanted characters. |
|
Used to convert the given string to uppercase. |
|
Used to convert a hexadecimal string to the corresponding binary string. |
|
Used to convert the given string to uppercase. |
Regular expressions¶
| Function Name | Function | | ————————————————————————————————————————————————————————————————————————————————————— | NOT REGEXP() | Used to test whether a string does not match the specified regular expression| | REGEXP_INSTR() | Returns the starting position of the matching regular expression pattern in the string. | | REGEXP_LIKE() | Used to determine whether the specified string matches the provided regular expression pattern| | REGEXP_REPLACE() | Used to replace the string matching the given regular expression pattern with the specified new string| | REGEXP_SUBSTR() | Used to return substrings in string parameters that match regular expression parameters|
Vector class functions¶
| Function Name | Function | | ————————————————————————————————————————————————————————————————————————————————————— | Basic Operator | Addition (+), subtraction (-), multiplication (*) and division (/) of vectors || SQRT() | Used to calculate the square root of each element in a vector | | ABS() | Used to calculate the absolute value of a vector | | CAST() | Used to explicitly convert a vector from one vector type to another vector type| | SUMMATION() | Returns the sum of all elements in the vector | | INNER_PRODUCT() | Used to calculate the inner product/dot product between two vectors| | CLUSTER_CENTERS() | K cluster centers used to determine vector columns | | COSINE_DISTANCE() | Used to calculate the cosine distance of two vectors. | | COSINE_SIMILARITY() | Measures the cosine value of the angle between two vectors, and their similarity is expressed by their proximity in multidimensional space| | L2_DISTANCE() | Used to calculate the Euclidean distance between two vectors| | L1_NORM() | Used to calculate l1/Manhattan/TaxiCab norm| | L2_NORM() | Used to calculate l2/Euclidean norm| | NORMALIZE_L2() | Used to perform Euclid normalization | | SUBVECTOR() | Used to extract subvectors from vectors | | VECTOR_DIMS() | Used to determine the dimension of a vector|
Table function¶
Function Name |
Function |
|---|---|
Used to form a sequence from the start value to the end value |
|
Used to expand columns or parameters of array type within JSON type data into a table |
Window Function¶
Function Name |
Function |
|---|---|
Provide a unique ranking for each row in the dataset |
|
Provide a unique ranking for each row in the dataset |
|
Provide a unique sequence number for each row in the dataset |
JSON Function¶
Function Name |
Function |
|---|---|
Used to parse and convert JSON data based on jq expressions |
|
Return data from JSON document |
|
Extract the value of the specified path from JSON data |
|
Extract the value of the string of the specified path from JSON data |
|
Quoting JSON Documentation |
|
Used to convert each row into a json array |
|
Dereference JSON Documentation |
|
Used to parse and convert JSON data based on jq expressions and provide fault tolerance mechanisms |
System operation and maintenance functions¶
Function Name |
Function |
|---|---|
Used to query the name of the role owned by the currently logged in user. |
|
Returns the role of the current session. |
|
Used to query the user name you are currently logged in. |
|
Return to the current user account |
|
Used to delete logs recorded in MatrixOne database system tables. |
Other functions¶
Function Name |
Function |
|---|---|
Used to read the contents of the datalink type pointing to the file |
|
Used to save the contents of the datalink type pointing to the file |
|
Mainly used to quickly reduce query scope |
|
Used to extract individual elements in sequence/tuple values |
|
Pause (sleep) the specified number of seconds for the current query |
|
Used to view directories and files in stage |
|
Return to generate internationally universal unique identifier based on RFC 4122 |