Please see the beginning of this discussion at http://community.teradata.com/t5/Connectivity/connections-issues-of-presto-to-tableau/m-p/71204
My questions:Is this a "custom sql" or query automatically generated by Tableau?
Could you please take a look at the Presto Web UI and verify what statement that is actually hitting Presto is the same when you issue it via Tableau and CLI?
What is the difference in the output? Could you please include the output from both (screenshot etc.) ?