您的查询应该是有效的,但是Pentaho似乎在解析它时遇到了问题。
您可以尝试使用
SELECt SUM(loan_receivable_detail.interest) AS interest, loan_account_opening_id FROM loan_receivable_detail GROUP BY loan_account_opening_id
它提供与您的查询相同的结果,但没有子查询(希望它将使Pentaho满意)

您的查询应该是有效的,但是Pentaho似乎在解析它时遇到了问题。
您可以尝试使用
SELECt SUM(loan_receivable_detail.interest) AS interest, loan_account_opening_id FROM loan_receivable_detail GROUP BY loan_account_opening_id
它提供与您的查询相同的结果,但没有子查询(希望它将使Pentaho满意)