That is not the source query, that is query that Teiid submitted to the translator layer. If you turn on TRACE level debug, you will see a log message with prefix "Source sql". Also please post the whole error.