tWindow properties for Apache Spark Structured Streaming
Last updated: 9/30/2026These properties are used to configure tWindow running in the Spark Structured Streaming Job framework.
The Spark Structured Streaming tWindow component belongs to the Processing family.
The streaming version of this component is available in Talend Real-Time Big Data Platform and in Talend Data Fabric.
Basic settings
| Properties | Description |
|---|---|
| Schema and Edit schema |
A schema is a row description. It defines the fields (columns) processed by the component. When you create a Spark Job, avoid the reserved word line when naming fields.
Click Edit schema to modify the schema. If you modify a Repository schema, the available options include:
|
| Window Type | Select the type of window to apply from the drop-down list:
|
| Time Column | Select the timestamp column from the schema to use as the basis for windowing. |
| Window Duration | Enter the length of each window as a time string, for example
"10 minutes" or "1 hour". This property is available for Tumbling Window and Sliding Window. |
| Slide Duration | Enter the interval at which the window advances as a time string, for
example "5 minutes". The slide duration must be less than or
equal to the window duration. This property is available for Sliding Window only. |
| Session Gap Duration | Enter the inactivity gap that closes a session window as a time string, for
example "5 minutes". A new window opens when the next event
arrives after the gap. This property is available for Session Window only. |
| Start Time (optional) | Enter an offset to align window boundaries to a specific time, for example
"15 minutes". Defaults to "0 seconds" when
not set. This property is available for Tumbling Window and Sliding Window. |
Advanced settings
| Properties | Description |
|---|---|
| Return window expression for group by (performance optimization) | Select this check box to return the window as a column expression instead of applying it directly to the dataset. Use this option when passing the window expression to a groupBy operation to avoid recomputing the window column. |
Usage
| Usage guidance | Description |
|---|---|
| Usage rule |
This component is used as an intermediate step. This component adds a window column to the dataset based on the selected window type and timestamp column. This component, along with the Spark Structured Streaming component Palette it belongs to, appears only when you are creating a Spark Structured Streaming Job. |
| Spark Connection |
You need to use the Structured Streaming Configuration tab in the Run view to define the connection to a Spark cluster for the whole Job. This connection is effective on a per-Job basis. |