All Products
Search
Document Center

Simple Log Service:SQL functions

Last Updated:Feb 09, 2025

This topic offers a comprehensive overview of SQL functions, designed to acquaint you with the capabilities and features of various SQL functions.

Overview

Classification

Description

Common functions

Aggregate functions

Perform summary calculations on the target dataset to generate a single statistical result.

String functions

Process text data, including search, replace, substring, concatenate, and format.

Date and time functions

Perform format conversion, grouping, and aggregation on dates and times in logs.

JSON functions

Process JSON objects, including fetch, transform, and statistics.

Regular expression functions

Pattern matching and text processing.

Year-on-year and month-on-month functions

Calculate the relative change of time series data.

Array functions and operators

Perform add, delete, update, retrieve, traverse, and transform operations on arrays.

Map mapping functions and operators

Operate on key-value pairs.

Mathematical calculation functions

Perform numerical calculations, rounding, random number generation, and trigonometric functions.

Mathematical statistics functions

Analyze data distribution and perform numerical calculations.

Type conversion functions

Handle conversions between data types.

Window functions

Perform aggregation or sorting based on data windows.

IP functions

Parse and calculate IP addresses.

URL functions

Parse URL structures.

Estimation functions

Predict data or fill in missing values.

Binary functions

Process binary data types.

Bitwise operation functions

Directly operate on binary bits.

Spatial geometry functions

Process spatial geometries.

Geographic functions

Perform geographic location analysis and map calculations.

Color functions

Perform color representation and conversion.

HyperLogLog functions

Perform statistical processing on large datasets, sacrificing precision to save memory.

Comparison operators

Determine the size relationship of parameters, applicable to any comparable data type (double, bigint, varchar, timestamp, and date).

Logical operators

Combine multiple Boolean conditions to control the logical flow.

Unit conversion functions

Convert units of data size or time interval.

Window funnel functions

Analyze user behavior, app traffic, or product goal conversion data.

Lambda expressions

Define lambda expressions in SQL analysis statements and SPL statements, and pass the expression to specified functions to enrich the expression of functions.

Conditional expressions

Return different values based on conditional branches.

AI machine learning functions

Implement predefined operations or methods for specific algorithms or models. Used in various stages such as data preprocessing, feature engineering, model training, evaluation, and prediction.