Hi,
I've discovered another part of RowsetDefinition which can only work
reliably using the mondrian olap4j driver.

The line number is 5096 and the code snippet in question is the following:

protected void populateCatalog(
OlapConnection connection,
Catalog catalog,
List<Row> rows)
throws XmlaException, SQLException
{
// SQL Server actually includes the LEVELS_LIST row
StringBuilder buf = new StringBuilder(100);

for (Schema schema : filter(catalog.getSchemas(),
schemaNameCond)) {
for (Cube cube : filter(sortedCubes(schema), cubeNameCond))
{
Dimension measuresDimension =
cube.getDimensions().get(0);
Hierarchy measuresHierarchy =
measuresDimension.getHierarchies().get(0);


As you can see there is a strong assumption made here: that the first
dimension in the list contains the Measures.
The right way to do this is to iterate through the array and stop when
"dimension type" is MEASURE.

Thanks,
Michele

_______________________________________________
Mondrian mailing list
Mondrian (AT) pentaho (DOT) org
http://lists.pentaho.org/mailman/listinfo/mondrian