TEIID-3046 performing a better conversion of the max recursion value