TEIID-2464 fix for stack overflow