当使用自定义查询时,我在Tableau Desktop上收到以下错误,当直接将表拖动到Tableau Desktop上的查询构建器部分时,我可以成功地连接并查看表中的内容。
使用的数据源: AWS Athena
驱动程序版本: AthenaJDBC42_2.0.2
Tableau Desktop版本: 10.4
com.tableausoftware.jdbc.TableauJDBCException: Error reading metadata for executed query: SELECT * FROM ( select * from tablename ) "TableauSQL" LIMIT 0 [Simba][AthenaJDBC](100071) An error has been thrown from the AWS Athena client. Only one sql statement is allowed. Got: SELECT * FROM ( select * from tablename ;) "TableauSQL" LIMIT 0
There was a Java error.
Unable to connect to the server "Athena.us-east-1.amazonaws.com". Check that the server is running and that you have access privileges to the requested database.发布于 2018-06-22 18:20:19
尝试从子查询中删除;,这将为我抛出错误
发布于 2018-08-01 21:06:46
我也有同样的问题。为了更清楚地说明上面的问题-- Tableau添加了外部查询。下面是我的简单查询和Tableau返回的错误。

我可以通过将查询更改为以"database"." table“的形式引用我的表来解决问题,并删除结尾;
然后,这个自定义查询对我起作用了:

https://stackoverflow.com/questions/50981288
复制相似问题