Skip to content

Commit

Permalink
MONDRIAN: Disable testNonEmptyCrossJoin test if native crossjoin is d…
Browse files Browse the repository at this point in the history
…isabled. (Bug 1688139.)

[git-p4: depot-paths = "//open/mondrian/": change = 8947]
  • Loading branch information
julianhyde committed Mar 26, 2007
1 parent f9ce295 commit bf5c3e1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions testsrc/main/mondrian/test/BasicQueryTest.java
Expand Up @@ -4504,9 +4504,15 @@ public void testFilteredCrossJoin() {
}

/**
* This resulted in an OutOfMemoryError
* Tests a query with a CrossJoin so large that we run out of memory unless
* we can push down evaluation to SQL.
*/
public void testNonEmptyCrossJoin() {
if (!MondrianProperties.instance().EnableNativeCrossJoin.get()) {
// If we try to evaluate the crossjoin in memory we run out of
// memory.
return;
}
CachePool.instance().flush();
Result result = executeQuery(
"select {[Measures].[Store Sales]} on columns,\n" +
Expand Down Expand Up @@ -5252,7 +5258,7 @@ private void tryMemberOrdinalCaching(TestContext context) {

// The query above primed the cache with bad absolute ordinals;
// verify that this doesn't interfere with subsequent queries.

context.assertQueryReturns(
"with member [Measures].[o] as 0\n" +
"select tail([Customers].[Name].members, 5)\n" +
Expand Down

0 comments on commit bf5c3e1

Please sign in to comment.