AVERAGE

The AVERAGE aggregation function calculates an average value from an input stream.

For example, you can find the average income of a population.

See Also
RESULT SET
AGGREGATE
GROUP BY
Choose Where to Apply Aggregations
Parameter Description
Filter expressionAn expression to keep some elements only. It is useful to process the aggregation on a subpart of your input stream.
Expression Extracts the numerical value of each element of the input stream. For example, person.income if your input is a stream of persons.

Default: identity function.

Ignore nullsBy default the aggregation ignores null elements. If false, the aggregation returns null if it finds at least one null.

Default: true.

Convert to float By default the aggregation keeps the type of the numerical element. For example, if the income is an Integer, the numerical type is an Integer. If true, the average aggregation returns a Float.

Default false.