Skip to main content
Returns the cumulative sums of elements in an array.

Syntax

Parameters

array: The elements in the array must be of the BIGINT (8-byte signed integer) or DOUBLE (8-byte floating-point number) type.

Return values

Returns an array. NULL is returned if the input array is NULL.

Examples

Example 1: Return the cumulative sums of an array.
Example 2: Use this function with CAST.
Example 3: The input array contains a null.
Example 4: The input array is null.