The following table describes the required columns of the input table. The input table can have additional columns, but the function ignores them.
|INTEGER, BIGINT, NUMERIC, or VARCHAR
|Column on which the input data is partitioned. This column must contain all rows that contain the entity to be averaged. For example, if the function is to return the cumulative moving average of a particular stock share price, all transactions of that stock must be in one partition.
|INTEGER, BIGINT, NUMERIC, or DOUBLE PRECISION
|Column whose values are to be averaged.
|INTEGER, BIGINT, TIMESTAMP, TIME
|Column by which the input table is ordered.