You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TopBottomPercentSumFunDef:76 fails and returns a null if you pass a NamedSet. Then when it goes to evaluate it then it throws a NullPointerException on line 121. The reason is because it's using a different way of compiling the list versus TopBottomCountFunDef which DOES work with NamedSets.
Example MDX Query:
WITH SET TimeFrame as '{[EmploymentDate].[yearQuarterMonth].[2017].[1]:[EmploymentDate].[yearQuarterMonth].[2018].[4]}'
SELECT
NON EMPTY { [Measures].[terminations] } ON COLUMNS,
NON EMPTY TopPercent( [TimeFrame], 25, [Measures].[terminations] ) on ROWS,
FROM [MyCube]
And the exception:
Caused by: java.lang.NullPointerException
at mondrian.olap.fun.TopBottomPercentSumFunDef$CalcImpl.evaluateList(TopBottomPercentSumFunDef.java:121)
at mondrian.calc.impl.AbstractListCalc.evaluateIterable(AbstractListCalc.java:71)
at mondrian.rolap.RolapResult.executeAxis(RolapResult.java:857)
at mondrian.rolap.RolapResult.evalLoad(RolapResult.java:693)
at mondrian.rolap.RolapResult.loadMembers(RolapResult.java:649)
at mondrian.rolap.RolapResult.<init>(RolapResult.java:279)
at mondrian.rolap.RolapConnection.executeInternal(RolapConnection.java:500)
This was tested on Pentaho 4.3.1.10
The text was updated successfully, but these errors were encountered:
chubbard
added a commit
to chubbard/mondrian
that referenced
this issue
Jun 26, 2019
TopBottomPercentSumFunDef:76 fails and returns a null if you pass a NamedSet. Then when it goes to evaluate it then it throws a NullPointerException on line 121. The reason is because it's using a different way of compiling the list versus TopBottomCountFunDef which DOES work with NamedSets.
Example MDX Query:
And the exception:
This was tested on Pentaho 4.3.1.10
The text was updated successfully, but these errors were encountered: