Global windows and purging

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Global windows and purging

Elias Levy
The documentation on streaming windows has the following warning:

Attention Purging will simply remove the contents of the window and will leave any potential meta-information about the window and any trigger state intact

Does this mean that if you are using global windows, purging is not sufficient the discard all window state for the given key?

Is there a way to discard global window state when you are done with it or will the state grow indefinitely  as new keys come in?


Reply | Threaded
Open this post in threaded view
|

Re: Global windows and purging

Elias Levy
FLINK-7731 seems to answer my question.  Need to call clear() when purging to remote all state.

On Thu, Nov 2, 2017 at 6:04 PM, Elias Levy <[hidden email]> wrote:
The documentation on streaming windows has the following warning:

Attention Purging will simply remove the contents of the window and will leave any potential meta-information about the window and any trigger state intact

Does this mean that if you are using global windows, purging is not sufficient the discard all window state for the given key?

Is there a way to discard global window state when you are done with it or will the state grow indefinitely  as new keys come in?