Quick BI报表复用其他仪表板组件之后提示报错“SQL execute error by datasource... org.postgresql.util.PSQLException: ERROR: syntax error at or near "bc8c0b1fb" ”
更新时间:
问题描述
Quick BI仪表板复用其他仪表板的指标趋势图之后,数据加载报错:“SQL execute error by datasource... org.postgresql.util.PSQLException: ERROR: syntax error at or near "bc8c0b1fb" ”完整的异常堆栈信息报错如下:
traceId:d8be7a14-eef7-4065-ad1a-df47413d7969;
errMsg:数据源执行SQL失败:java.lang.RuntimeException: SQL execute error by datasource... org.postgresql.util.PSQLException: ERROR: syntax error at or near "bc8c0b1fb" 位置:149 org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2532) org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2267) org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:312) org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:448) org.postgresql.jdbc.PgStatement.execute(PgStatement.java:369) 但是复用的指标趋势图在原来的仪表板中可以正常展示数据。
问题原因
复用的指标趋势图引用的度量字段都是计算字段,复用时对应的计算字段表达式没有被完整复用过来,导致新的仪表板中加载数据提示SQL语法错误。

解决方案
复用其他仪表板组件之后,如果该组件有引用计算字段,需要手动调整计算字段表达式符合新的业务逻辑。
适用于
Quick BI
该文章对您有帮助吗?