The result type is a "number" which can be either integer or floating point.
Notes
Nulls are ignored by this function.
If a row is empty or consists only of nulls, the result is NULL.
e.g. time period 1628894760000, in the example contains a null.
Find the average cpuUsage in each DATE_TIME period:
SET DATE_TIME = UNIX_EPOCH_TO_DATE(data.time);SELECTAVG(data.cpuUsage) AS avg_data_cpuusage:DOUBLE, DATE_TIME AS date_time:TIMESTAMPFROM"TIME_SERIES_DATA_w_NULL"GROUP BY DATE_TIME