I want to unit test "ProcessWindowFunction", but i...
# troubleshooting
s
I want to unit test "ProcessWindowFunction", but i cannot found usecase. when i try "WindowOperator", it must use ReducingStateDescriptor, this will lead to my windows only leave one event, but i want to see all event in "ProcessWindowFunction" logic. does anyone know how to test ProcessWindowFunction, then i can test windows with all event
1
r
We’ve used the same way for our tests and are able to unit test the ProcessWindowFunction.
s
i try it, but when i use "ListStateDescriptor" , the window iterable event type is arraylist, seems it take all event in window as single one.
seems something is diffrent from your example, i try it success, thanks
r
Cool