window() function
A single input record will be placed into zero or more output tables, depending on the specific windowing function.
By default the start boundary of a window will align with the Unix epoch (zero time) modified by the offset of the location
option.
*Function type: Transformation
**Output data type:* Record
Calendar months and years
every
, period
, and support all , including calendar months (1mo
) and years (1y
).
Duration of time between windows. Defaults to period
value.
period
Duration of the window. Period is the length of each interval. It can be negative, indicating the start and stop boundaries are reversed. Defaults to value.
*Data type: Duration*
Offset is the duration by which to shift the window boundaries. It can be negative, indicating that the offset goes backwards in time. Defaults to 0, which will align window end boundaries with the every
duration.
*Data type: Duration*
timeColumn
The column containing time. Defaults to "_time"
.
The column containing the window start time. Defaults to "_start"
.
*Data type: String*
stopColumn
The column containing the window stop time. Defaults to .
*Data type: String*
Specifies whether empty tables should be created. Defaults to false
.