System function classification
Data Exploration provides many built-in functions for common data processing needs. These system functions are compatible with various compute engines and have the same behavior and usage in offline, real-time, and online models. This topic describes the types of system functions in Data Exploration and explains how to use them.
Function classification
The system functions in Data Exploration fall into the following categories:
Function type | Description |
Time functions | Process date and time data to perform operations such as adding or subtracting dates, extracting date fields, getting the current time, and converting date formats. |
String functions | Process string data to perform operations such as extracting substrings, replacing strings, concatenating strings, finding strings, and converting character cases. |
Mathematical functions | Process numeric data, such as integers and decimals, to perform mathematical calculations and rounding. |
ID card processing functions | Process ID card numbers to extract information such as birth dates and gender. |
Spatial functions | Process spatial data (GEOMETRY data type) to perform operations such as calculating polygon areas and finding the intersection or difference of geometries. |
Other functions | Functions that support other business scenarios not covered by the categories above. |
Notes
Note the following when you use system functions:
The types, number, and format of input parameters for a system function must meet the syntax requirements. If they do not, the system cannot parse the function, and an error occurs when the model runs.
Some system functions have specific requirements for the compute engine or its version. For example, the MAX_PT function applies only to MaxCompute (ODPS), and the JSON_EXTRACT function is supported only on MySQL 5.7 or later. If you use a function on an unsupported compute engine, an error occurs when the model runs.
Spatial functions can be run only on PostgreSQL-compatible databases, such as PostgreSQL, ADB_PG, and Polar_PG. They are not supported by other types of databases.