[Mondrian] Bug in Large Dimension Handling First Cut

timothy.lambert at thomsonreuters.com timothy.lambert at thomsonreuters.com
Mon May 12 20:28:59 EDT 2008


Turning on the "highCardinality" switch for the Product dimension in
FoodMart causes a cast exception.

 

The problem was that HighCardSqlTupleReader.readTuples was returning a
list of Member[] not a list of RolapMember[].

 

Fix attached.

 

Example exception stack...

 

Caused by: java.lang.ClassCastException: [Lmondrian.olap.Member; cannot
be cast to [Lmondrian.rolap.RolapMember;

      at
mondrian.rolap.SqlMemberSource$1$1.next(SqlMemberSource.java:485)

      at mondrian.rolap.SqlMemberSource$1$1.next(SqlMemberSource.java:1)

      at
mondrian.rolap.RolapCubeHierarchy$CacheRolapCubeHierarchyMemberReader.ge
tMembersInLevel(RolapCubeHierarchy.java:627)

      at
mondrian.rolap.RolapSchemaReader.getLevelMembers(RolapSchemaReader.java:
447)

      at
mondrian.rolap.RolapSchemaReader.getLevelMembers(RolapSchemaReader.java:
430)

      at
mondrian.rolap.RolapCube$RolapCubeSchemaReader.getLevelMembers(RolapCube
.java:2425)

      at
mondrian.olap.DelegatingSchemaReader.getLevelMembers(DelegatingSchemaRea
der.java:139)

      at
mondrian.olap.Query$QuerySchemaReader.getLevelMembers(Query.java:1472)

      at
mondrian.olap.fun.FunUtil.getNonEmptyLevelMembers(FunUtil.java:1803)

      at mondrian.olap.fun.FunUtil.levelMembers(FunUtil.java:1812)

      at
mondrian.olap.fun.BuiltinFunTable$34$1.evaluateMemberList(BuiltinFunTabl
e.java:1064)

      at
mondrian.olap.fun.SetFunDef$ListSetCalc$1.evaluateVoid(SetFunDef.java:13
2)

      at
mondrian.olap.fun.SetFunDef$ListSetCalc.evaluateList(SetFunDef.java:209)

      at
mondrian.calc.impl.AbstractListCalc.evaluate(AbstractListCalc.java:67)

      at mondrian.rolap.RolapResult.executeAxis(RolapResult.java:732)

      at mondrian.rolap.RolapResult.evalLoad(RolapResult.java:588)

      at mondrian.rolap.RolapResult.loadMembers(RolapResult.java:563)

      at mondrian.rolap.RolapResult.<init>(RolapResult.java:286)

      at
mondrian.rolap.RolapConnection.execute(RolapConnection.java:469)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pentaho.org/pipermail/mondrian/attachments/20080512/9cf8aed7/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: changelist11052.tar.gz
Type: application/x-gzip
Size: 4508 bytes
Desc: changelist11052.tar.gz
Url : http://lists.pentaho.org/pipermail/mondrian/attachments/20080512/9cf8aed7/attachment.gz 


More information about the Mondrian mailing list