TEIID-2977 fix for function json results