Skip to content

rolling()

Combine multiple two-dimensional statistical aggregates to calculate rolling window aggregates

Since 1.3.0

Combine multiple intermediate two-dimensional statistical aggregate (StatsSummary2D) objects into a single StatsSummary2D object. It is optimized for use in a window function context for computing tumbling window statistical aggregates.

The syntax is:

rolling(
ss StatsSummary2D
) RETURNS StatsSummary2D
NameTypeDefaultRequiredDescription
summaryStatsSummary2D-The statistical aggregate produced by a stats_agg call
ColumnTypeDescription
rollingStatsSummary2DA new statistical aggregate produced by combining the input statistical aggregates