No it is not currently directly accessible. It may potentially have little relationship to what is happening at the source though - given the presence of view layers and the rewrite/optimization.
Generally the correlation is seen with logging as the request id will be the same for the user and source sql that is logged.
Thanks for the swift reply.
We are using the Embedded version, and we don't see original SQL logged anywhere. Do you know how I can get that logged?
> Do you know how I can get that logged?
The best logging is through command logging - Logging - Teiid 8.11 - Project Documentation Editor
You can enable it by setting the org.teiid.COMMAND_LOG context to the appropriate level.
I tried this, setting COMMAND_LOG to debug as per instructions, but did not see commands logged, actually I set all logging to DEBUG, and saw other teiid logging at debug level. I wonder if it is because we are using Embedded Server.