TEIID-2734 using the array result from the direct procedure