我最近根據手冊安裝了Pentaho。我建立了一個簡單的數據庫survey
並從JDBC(MySQL)運行一個簡單的查詢Query1 SELECT * FROM 'surveys'
。當我從JDBC數據源預覽它時,查詢運行正常,並顯示所需的結果。Pentaho'org.pentaho.reporting.engine.classic.core.ReportDataFactoryException:查詢失敗:
但是,當我打開Pentaho Report Designer頁面並單擊Query1時,它會引發以下異常;
ERROR: The query 'Query 1' did not execute successfully. The reason given was: 'org.pentaho.reporting.engine.classic.core.ReportDataFactoryException: Failed at query: SELECT * FROM 'surveys'
這不可能是答案。有時你不知道你的查詢將返回多少行,所以不能對所有查詢進行限制。 – t3b4n