Summary table of functions¶
This document lists the functions supported in the latest version of MatrixOne.
This document lists the functions supported in the latest version of MatrixOne.
Aggregate function¶
Function name |
effect |
|---|---|
Returns any value in the parameter range |
|
Calculate the arithmetic mean of the parameter columns. |
|
A set of built-in functions for working with bitmaps, mainly for calculating different values |
|
Calculated the ratio of all the bits in the column by bit to the |
|
Calculated the bitwise or of all bits in the column |
|
Calculated the bitwise dissimilarity of all the bits in the column |
|
The number of records of the query result was calculated |
|
Concatenates content specified by columns or expressions |
|
Returns the maximum of a set of values |
|
Returns the median of a set of values |
|
Returns the smallest of a set of values |
|
Used to calculate the overall standard deviation |
|
Used to calculate the sum of a set of values |
|
Used to calculate overall variance |
|
Used to calculate overall variance |
Date Time Class Function¶
Function name |
effect |
|---|---|
Used to convert a given datetime from one time zone to another. |
|
Returns the current date in YYYY-MM-DD format. |
|
Returns the current date and time in YYYY-MM-DD hh:mm:ss or YYYYMMDDhhmmss format. |
|
Intercepts the date portion of input in DATE or DATETIME format. |
|
Used to perform date arithmetic: add a specified time interval to a specified date. |
|
Formatting date values from format strings |
|
Used to perform date arithmetic: subtracts a specified time interval from a specified date. |
|
Returns the number of days between two dates |
|
Returns a date as the first of the month. |
|
Number of days in a year corresponding to the date of return |
|
Partial extraction from the date |
|
Hours of return time |
|
Converts internal UNIX timestamp values to normal format datetime values, which are displayed in YYYY-MM-DD HH:MM:SS or YYYYMMDDHHMMSS format. |
|
Returns the minutes of the time parameter |
|
Returns the month of the date parameter |
|
Returns the current date and time in ‘YYYY-MM-DD HH:MM:SS’ format. |
|
Returns the number of seconds for the time parameter |
|
Convert a string to a date or datetime type according to a specified date or time display format |
|
Returns the current date and time in ‘YYYY-MM-DD HH:MM:SS’ format. |
|
Extracts the time portion of a time or datetime and returns it as a string |
|
Returns the difference between two time parameters |
|
Returns a date or datetime parameter as a datetime value |
|
Returns an integer representing the time interval between the first datetime expression and the second datetime expression in the given time units |
|
Convert a string to a date or datetime type according to a specified date or time display format |
|
Used to calculate the difference in the number of days between a given date and the start date of the Gregorian calendar (January 1, 0000) |
|
Used to calculate the difference in seconds between a given date or datetime expr and 0 hours, 0 minutes, 0 seconds on January 1, 0 AD. |
|
Returns the number of seconds from 1970-01-01 00:00:00 UTC to the specified time. |
|
Returns the current UTC time in the format YYYY-MM-DD hh:mm:ss or YYYYMMDDhhmmss |
|
Used to calculate the number of weeks for a given date |
|
Returns the weekday index of the date (0 = Monday, 1 = Tuesday, … 6 = Sunday) |
|
Returns the year of the given date |
Mathematical class functions¶
Function name |
effect |
|---|---|
Used to find the absolute value of a parameter |
|
Used to find the cosine of a given value (expressed in radians) |
|
Used to find the arctangent of a given value (expressed in radians) |
|
Returns the number of bits set to 1 in the argument. |
|
Used to find the smallest integer that is not less than the argument. |
|
Used to find the smallest integer that is not less than the argument. |
|
Used to find the cosine of an input parameter (expressed in radians). |
|
Used to find the cotangent value of the input parameter (expressed in radians). |
|
Used to calculate a CRC32 checksum for a string |
|
Used to find the exponent of number with the natural constant e as the base. |
|
Used to find the number of digits not greater than the corresponding digit of a number. |
|
The natural logarithm used to find the parameters |
|
The natural logarithm used to find the parameters |
|
Used to find the logarithm with 2 as the base parameter. |
|
Used to find logarithms with a base argument of 10. |
|
Used to find the mathematical constant π (pi) |
|
POWER(X, Y) is used to find the Yth power of X. |
|
Used to find the value of a number rounded to a specific number of digits. |
|
Used to generate a random number of type Float64 between 0 and 1. |
|
Used to find the sine of an input parameter (expressed in radians) |
|
For finding the hyperbolic sine of an input parameter (expressed in radians) |
|
Used to find the tangent of the input parameter (expressed in radians). |
String class function¶
Function name |
effect |
|---|---|
Converts arguments to binary string form. |
|
Returns the length of the string str in bits. |
|
Returns the length of the string str in characters. |
|
Concatenate multiple strings (or strings containing only one character) into a single string |
|
Represents Concatenate With Separator, a special form of CONCAT(). |
|
Determines whether the input string is empty. |
|
Checks if it ends with the specified suffix. |
|
Returns the position of the first string str in the list of strings (str1,str2,str3,…). in the list of strings (str1,str2,str3…) |
|
Finds the location of the specified string in a comma-separated list of strings. |
|
Used to format numbers to the “#,###,###. ###” format and round to one decimal place. |
|
Used to convert Base64 encoded strings back to raw binary data (or text data). |
|
Returns the hexadecimal string form of the argument |
|
Returns the position of the first occurrence of the substring in the given string. |
|
Used to convert the given string to lowercase form. |
|
Returns the leftmost length character of the str string. |
|
Returns the length of the string. |
|
Function for finding the location of a substring in a string. |
|
Used to convert the given string to lowercase form. |
|
Used to fill in the left side of the string. |
|
Removes leading spaces from the input string and returns the processed characters. |
|
Generates a 32-character hexadecimal MD5 hash of the input string. |
|
Returns the given value with the specified column name, used for replication. |
|
Returns a string of the octal value of the argument |
|
Repeats the input string n times and returns a new string. |
|
Flips the order of the characters in the str string and outputs them. |
|
Used to fill in the right side of a string |
|
Remove trailing spaces from the input string. |
|
Used to compute and return the SHA-1 hash of a given string. |
|
Returns the SHA2 hash of the input string. |
|
Returns a string of N spaces. |
|
Used to break a string into multiple parts based on a given separator character |
|
The string returns 1 if it starts with the specified prefix, 0 otherwise. |
|
Used to compare the size of two strings or check whether they are equal. |
|
Returns a substring starting at the specified position |
|
Get characters with different index bits, indexed by the separator. |
|
Used to convert strings to Base64 encoded strings |
|
Returns a string, removing unwanted characters. |
|
Used to convert the given string to uppercase form. |
|
Used to convert a hexadecimal string to the corresponding binary string. |
|
Used to convert the given string to uppercase. |
Regular Expressions¶
Function name |
effect |
|---|---|
Used to test if a string does not match a specified regular expression |
|
Returns the starting position in the string of the matched regular expression pattern. |
|
Used to determine if the specified string matches the provided regular expression pattern |
|
Used to replace a string matching a given regular expression pattern with a specified new string |
|
Used to return a substring of a string argument that matches a regular expression argument. |
Vector class functions¶
Function name |
effect |
|---|---|
Addition (+), subtraction (-), multiplication (*) and division (/) of vectors. |
|
Used to calculate the square root of each element in a vector |
|
Used to calculate the absolute value of a vector |
|
Used to explicitly convert a vector from one vector type to another vector type |
|
Returns the sum of all elements in the vector |
|
Used to compute the inner product/dot product between two vectors |
|
K clustering centers for determining vector columns |
|
Used to compute the cosine distance of two vectors. |
|
A measure of the cosine of the angle between two vectors, indicating their similarity by their proximity in a multidimensional space |
|
Used to compute the Euclidean distance between two vectors |
|
Used to compute l1/Manhattan/TaxiCab norms |
|
For calculating l2/Euclidean paradigms |
|
For performing Euclidean normalization |
|
For extracting subvectors from vectors |
|
Used to determine the dimension of the vector |
Table function¶
Function name |
effect |
|---|---|
Used to form a sequence from start value to end value |
|
Used to expand an array of columns or parameters within JSON-type data into a table. |
Window function¶
Function name |
effect |
|---|---|
Provide a unique ranking for each row in the dataset |
|
Provide a unique ranking for each row in the dataset |
|
Provide a unique serial number for each row in the data set |
JSON function¶
Function name |
effect |
|---|---|
Used to parse and transform JSON data based on jq expressions |
|
Return data from a JSON document |
|
Extract the value of the specified path from JSON data |
|
Extract the value of a string with a specified path from JSON data |
|
Quote JSON document |
|
Used to convert each row into a json array |
|
Used to set or update the value of a key in a JSON document |
|
Unquote a JSON document |
|
Used to parse and convert JSON data based on jq expressions, and provide a fault-tolerant mechanism |
system operation and maintenance function¶
Function name |
effect |
|---|---|
Used to query the name of the role owned by the currently logged in user. |
|
Returns the role of the current session. |
|
Used to look up the name of the user you are currently logged in as. |
|
Returns the current user account |
|
Used to delete logs recorded in MatrixOne database system tables. |
Other functions¶
Function name |
effect |
|---|---|
Used to read the contents of the file pointed to by the datalink type. |
|
Used to save the content of the file pointed to by the datalink type. |
|
Mainly used to quickly reduce the query scope |
|
Used to extract individual elements in a sequence/tuple value |
|
Pause (sleep) the current query for the specified number of seconds |
|
Used to view directories and files in stage. |
|
Returns an internationally unique identifier generated according to RFC 4122 |