This topic describes the window functions that Spark Streaming SQL supports and the time attribute of the functions.
Spark SQL uses the event time attribute to aggregate data in a window.
The event time attribute defines the time when each data entry is created. It is provided in the schema.
When you query an existing time window, the window function automatically generates
window column. This column contains
window.start (start time) and
window.end (end time).