Time window functions return the inclusive lower and exclusive upper bound of the corresponding window. The functions for working with WindowView are listed below:Documentation Index
Fetch the complete documentation index at: https://private-7c7dfe99-page-updates.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
hop
Introduced in: v21.12.0 A hopping time window has a fixed duration (window_interval) and hops by a specified hop interval (hop_interval). If the hop_interval is smaller than the window_interval, hopping windows are overlapping. Thus, records can be assigned to multiple windows.
Since one record can be assigned to multiple hop windows, the function only returns the bound of the first window when hop function is used without WINDOW VIEW.
Syntax
time_attr— Date and time.DateTimehop_interval— Positive Hop interval.Intervalwindow_interval— Positive Window interval.Intervaltimezone— Optional. Timezone name.String
Tuple(DateTime, DateTime)
Examples
Hopping window
Query
Response
hopEnd
Introduced in: v22.1.0 Returns the exclusive upper bound of the corresponding hopping window. Since one record can be assigned to multiple hop windows, the function only returns the bound of the first window when hop function is used withoutWINDOW VIEW.
Syntax
time_attr— Date and time.DateTimehop_interval— Positive Hop interval.Intervalwindow_interval— Positive Window interval.Intervaltimezone— Optional. Timezone name.String
DateTime
Examples
Hopping window end
Query
Response
hopStart
Introduced in: v22.1.0 Returns the inclusive lower bound of the corresponding hopping window. Since one record can be assigned to multiple hop windows, the function only returns the bound of the first window when hop function is used withoutWINDOW VIEW.
Syntax
time_attr— Date and time.DateTimehop_interval— Positive Hop interval.Intervalwindow_interval— Positive Window interval.Intervaltimezone— Optional. Timezone name.String
DateTime
Examples
Hopping window start
Query
Response
tumble
Introduced in: v21.12.0 A tumbling time window assigns records to non-overlapping, continuous windows with a fixed duration (interval).
Syntax
time_attr— Date and time.DateTimeinterval— Window interval in Interval.Intervaltimezone— Optional. Timezone name.String
Tuple(DateTime, DateTime)
Examples
Tumbling window
Query
Response
tumbleEnd
Introduced in: v22.1.0 Returns the exclusive upper bound of the corresponding tumbling window. Syntaxtime_attr— Date and time.DateTimeinterval— Window interval in Interval.Intervaltimezone— Optional. Timezone name.String
DateTime
Examples
Tumbling window end
Query
Response
tumbleStart
Introduced in: v22.1.0 Returns the inclusive lower bound of the corresponding tumbling window. Syntaxtime_attr— Date and time.DateTimeinterval— Window interval in Interval.Intervaltimezone— Optional. Timezone name.String
DateTime
Examples
Tumbling window start
Query
Response
windowID
Introduced in: v22.1.0 Returns the window identifier of the corresponding tumbling or hopping window. This function can only be used withWINDOW VIEW.
Syntax
time_attr— Date and time.DateTimeinterval— Window interval in Interval.Intervaltimezone— Optional. Timezone name.String
UInt32
Examples
Window ID
Query
Response