All Products
Search
Document Center

IoT Platform:SQL analysis functions

Last Updated:Jun 08, 2026

SQL analysis provides built-in functions that cover most data processing scenarios. The following table lists the supported function types.

Supported function types

SQL analysis provides the following built-in function types.

Function type

Description

Date and time functions

Operates on DATE, DATETIME, and TIMESTAMP types. Supports date arithmetic, difference calculation, field extraction, current time retrieval, and format conversion.

Mathematical functions

Operates on BIGINT, DOUBLE, DECIMAL, and FLOAT types. Supports base conversion, arithmetic, rounding, and random number generation.

Window functions

Performs calculations over a defined window, including sums, min/max, averages, medians, sorting, offsets, and sampling.

Aggregate functions

Aggregates multiple records into a single value. Supports sums, averages, min/max, parameter aggregation, and string concatenation.

String functions

Operates on STRING data. Supports truncation, replacement, search, case conversion, and format conversion.

Complex type functions

Operates on MAP and ARRAY types for structured data processing.

Other functions

Additional functions for various business scenarios.