Problem
The streaming-sessionization demo currently uses flatmapGroupWithState, which is considered legacy. We're encouraging the use of transformWithState instead, as this is the Spark state v2 API.
Proposed Solution
Update the demo to use transformWithState for Scala, and transformWithStateInPandas for Python.