...
All operators, as well as rich UDFs can be stateful. Previously, state can be lazily declared with a state descriptor any time during processing by using getRuntimeContext().getState(descriptor)
. Both concerns of state access as well as state registration is achieved addressed through the same call.
We propose to decompose this into 2 steps: (a) pre-flight (i.e. before the job graph is submitted) state descriptor registration, and (b) runtime access to registered state using the state ID only.
...