Quick BI仪表板添加查询控件筛选枚举值后图表报错:“ java.sql.SQLException: You cannot use the window function 'sum' in this context.”,不筛选时图表则正常展示是什么原因?

更新时间:

问题描述

Quick BI仪表板添加查询控件筛选枚举值后图表报错:“ java.sql.SQLException: You cannot use the window function 'sum' in this context.”,不筛选时图表则正常展示是什么原因?

问题原因

仪表板添加的查询控件绑定的字段为新创建的计算字段,计算字段表达式中使用到了窗口函数,查询字段枚举值就相当于在where条件中用到开窗函数,where后不支持使用窗口函数。

适用于

  • Quick BI