Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#35 Olap4j should not throw IllegalArgumentException

open
nobody
API (15)
5
2012-10-08
2010-02-14
Felix Saz
No

This query throw IllegalArgumentException against Mondrian driver.
The query work fine with XMLA driver. (http://localhost:8080/mondrian)

select {[Product].[Product Family].Members} ON COLUMNS,
{[Store].[Store Name].Members} DIMENSION PROPERTIES [Store].[Store Sqft] ON ROWS
from [Sales]
where [Measures].[Unit Sales]

Exception in thread "main" java.lang.IllegalArgumentException: No enum const class org.olap4j.metadata.Property$StandardMemberProperty.Store
at java.lang.Enum.valueOf(Enum.java:196)
at org.olap4j.metadata.Property$StandardMemberProperty.valueOf(Property.java:164)

Discussion

  • Julian Hyde
    Julian Hyde
    2010-02-22

    The bug is actually in the mondrian driver (i.e. in the mondrian code base). Added test case in rev 303, disabled until the bug is fixed in mondrian and olap4j picks up that version of mondrian.