Skip to content

Commit

Permalink
Adds a test for 1205. MONDRIAN-1205. It is fixed in Mondrian 4.0 but …
Browse files Browse the repository at this point in the history
…not in 3.4 so this test is expected to fail until we fix it in 3.4 as well.

git-svn-id: https://olap4j.svn.sourceforge.net/svnroot/olap4j/trunk@547 c6a108a4-781c-0410-a6c6-c2d559e19af0
  • Loading branch information
lucboudreau committed Aug 10, 2012
1 parent 849b745 commit 88108fb
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions testsrc/org/olap4j/ConnectionTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -3223,6 +3223,31 @@ public void testCubesDrillthroughReturnClause9() throws Exception {
});
}

/**
* Drillthrough with a measure on the axis, with
* two different measures as part of the RETURN clause.
*/
public void testCubesDrillthroughReturnClause10() throws Exception {
if (tester.getFlavor().equals(Flavor.XMLA)
|| tester.getFlavor().equals(Flavor.REMOTE_XMLA))
{
// TODO: Drillthrough is not implemented in XMLA yet.
return;
}
Class.forName(tester.getDriverClassName());
connection = tester.createConnection();
OlapConnection olapConnection =
tester.getWrapper().unwrap(connection, OlapConnection.class);
ResultSet rs = olapConnection.createStatement().executeQuery(
"DRILLTHROUGH SELECT from [Sales] where ([Promotions].[One Day Sale], [Store].[Store City].[Walla Walla], [Product].[Product Category].[Bread]) RETURN [Time].[Day], [Measures].[Store Sales], [Measures].[Store Cost]");
assertDrillRowsEquals(
rs,
new String[] {
"ROW:1997.0,34.0,14.0,9.12,3.443,",
"ROW:1997.0,38.0,10.0,3.22,1.288,"
});
}

private void assertDrillRowsEquals(
ResultSet rs, String[] expected)
throws Exception
Expand Down

0 comments on commit 88108fb

Please sign in to comment.