TEIID-2495 adding improvements to for each row processing