Currently, the read-only analysis engine supports most of MySQL's aggregation functions, but there are still limitations and incompatibilities in certain scenarios. This document introduces the list of supported aggregation functions in the read-only analysis engine, and enumerates type restrictions on input parameters. Input parameters and functions not mentioned in the document are not supported.
Supported Aggregation Function Types
count Function
Syntax: count(val)
Supported value types for val: int, bigint, double, decimal, varchar, and char.
sum Function
Syntax: sum(val)
Supported value types for val: int, bigint, double, decimal, varchar, and char.
avg Function
Syntax: avg(val)
Supported value types for val: int, bigint, double, decimal, varchar, and char.
max Function
Syntax: max(val)
Supported value types for val: int, bigint, double, decimal, varchar, and char.
min Function
Syntax: min(val)
Supported value types for val: int, bigint, double, decimal, varchar, and char.
group_concat Function
Syntax: group_concat(val)
Supported value types for val: int, bigint, double, decimal, varchar, and char.
any_value(arg) Function
Syntax: any_value(val)
Supported value types for val: int, bigint, double, decimal, varchar, and char.
Was this page helpful?