Skip to main content

groupArrayMovingSum

Introduced in: v20.1.0 Calculates the moving sum of input values. The function can take the window size as a parameter. If left unspecified, the function takes the window size equal to the number of rows in the column. Syntax
Parameters
  • window_size — Size of the calculation window. If left unspecified, the function takes the window size equal to the number of rows in the column. UInt64
Arguments
  • numbers_for_summing — Expression resulting in a numeric data type value. (U)Int* or Float* or Decimal
Returned value Returns an array of the same size and type as the input data. Array Examples Usage example
Query
Response
With window size
Query
Response
Last modified on June 19, 2026