All Products
Search
Document Center

Simple Log Service:SQL functions

Last Updated:Jun 04, 2026

Log Service SQL provides functions and operators for aggregation, string manipulation, date and time processing, JSON parsing, and more.

Overview

Note

Category

Description

Common functions

Aggregate functions

Computes a single result from a set of input values.

String functions

Finds, replaces, extracts, concatenates, and formats text data.

Date and time functions

Converts, truncates, and aggregates date and time values.

JSON functions

Extracts, transforms, and queries data from JSON objects and arrays.

Regular expression functions

Matches, extracts, and replaces text using regular expressions.

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

Compares time-series data across different time periods.

Array functions and operators

Accesses, filters, and transforms array elements.

map functions and operators

Operates on key-value pairs (maps).

Mathematical functions

Rounds, generates random numbers, and performs trigonometric calculations.

Mathematical and statistical functions

Analyzes data distributions with correlation, regression, and probability functions.

Type conversion functions

Converts values from one data type to another.

Window functions

Computes aggregations or rankings over a sliding window of rows.

IP functions

Parses and processes IP addresses.

URL functions

Extracts components from URLs.

Estimation functions

Approximates distinct counts, percentiles, and histograms for large datasets.

Binary functions

Operates on binary data.

Bitwise operation functions

Performs bitwise operations on integers.

Spatial geometry functions

Operates on spatial geometry objects.

Geographic functions

Performs geospatial analysis and calculations.

Color functions

Creates and manipulates color representations.

HyperLogLog functions

Estimates cardinality on large datasets with minimal memory.

Comparison operators

Compares values across types (double, bigint, varchar, timestamp, date) and returns a boolean.

Logical operators

Combines multiple boolean expressions to control logical flow.

Unit conversion functions

Converts data sizes or time intervals between different units.

Window funnel functions

Tracks sequential user actions for conversion funnel analysis.

lambda expressions

Defines inline functions for higher-order array operations in SQL or SPL.

Conditional expressions

Returns different values based on a specified condition.