With the DStream API it's possible to access the snapshot state of a stateful stream using MapWithStateDStream.stateSnapshots(). In the new Structured Streaming API it seems to me that only the function passed to mapGroupsWithState is able to access and update the state.
I'd like to create an in-memory distributed state of a stream based on it's input events. Then enrich events from another stream by joining them to the first event's (complete) state, i.e. not to the first stream itself.
Using the DStream API I'd simply join the second stream with the first stream's stateSnapshot. Is this feature missing on the new Structured Streaming API or is there a new better/cleaner way of sharing the GroupState between two streams this?