Apply formatting
[SP-502] Backport for PDI-10641

* clean up cached results of execution when each row is passed to row executor
* refactor the code to allow unit testing
+ add unit test