Skip to content
All videos
tutorialsDatabricks·July 7, 2025

Unlock Your Use Cases: A Deep Dive on Structured Streaming’s New TransformWithState API

Summary

TransformWithState is Spark 4.0's new API for custom stateful streaming operations, supporting flexible state variables (value, list, map) and timers that replace the older flatMapGroupWithState methods. The presentation demonstrates implementing sensor data forward-fill to enable accurate windowed aggregations, plus features including checkpoint-based state initialization, TTL eviction, Avro schema evolution support, and real-time sub-200ms latency mode.

Summary generated by brickster.ai from the video transcript.