s3-glacier-select-sql-reference-aggregate

Aggregate Functions (Amazon S3 Select only)

Amazon S3 Select supports the following aggregate functions.

Note
S3 Glacier Select does not support aggregate functions.

FunctionArgument TypeReturn Type
AVG(expression)INT, FLOAT, DECIMALDECIMAL for an INT argument, FLOAT for a floating-point argument; otherwise the same as the argument data type.
COUNT-INT
MAX(expression)INT, DECIMALSame as the argument type.
MIN(expression)INT, DECIMALSame as the argument type.
SUM(expression)INT, FLOAT, DOUBLE, DECIMALINT for INT argument, FLOAT for a floating-point argument; otherwise, the same as the argument data type.