Package mondrian.rolap.aggmatcher
Class Checkin_7634
- java.lang.Object
-
- TestCase
-
- mondrian.test.FoodMartTestCase
-
- mondrian.rolap.BatchTestCase
-
- mondrian.test.loader.CsvDBTestCase
-
- mondrian.rolap.aggmatcher.Checkin_7634
-
public class Checkin_7634 extends CsvDBTestCase
Checkin 7634 attempted to correct a problem demonstrated by this junit. The CrossJoinFunDef class has an optimization that kicks in when the combined lists sizes are greater than 1000. I create a property here which, if set, can be used to change that size from 1000 to, in this case, 2. Also, there is a property that disables the use of the optimization altogether and another that permits the use of the old optimization, currently the nonEmptyListOld method in the CrossJoinFunDef class, and the new, checkin 7634, version of the method called nonEmptyList.The old optimization only looked at the default measure while the new version looks at all measures appearing in the query. The example Cube and data for the junit is such that there is no data for the default measure. Thus the old optimization fails to produce the correct result.
- Author:
- Richard M. Emberson
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class mondrian.rolap.BatchTestCase
BatchTestCase.TestCase
-
-
Field Summary
-
Fields inherited from class mondrian.rolap.BatchTestCase
cubeNameSales, fieldGender, fieldProductDepartment, fieldProductFamily, fieldValueProductDepartment, fieldValuesGender, fieldValuesProductFamily, fieldValuesYear, fieldYear, measureUnitSales, tableCustomer, tableProductClass, tableTime
-
Fields inherited from class mondrian.test.FoodMartTestCase
propSaver
-
-
Constructor Summary
Constructors Constructor Description Checkin_7634()
Checkin_7634(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
getCubeDescription()
protected java.lang.String
getDirectoryName()
protected java.lang.String
getFileName()
void
testCrossJoin()
-
Methods inherited from class mondrian.test.loader.CsvDBTestCase
createTestContext, getNamedSetDescription, getParameterDescription, getRoleDescription, getSchema, getSqlConnection, getTestContext, getUdfDescription, getVirtualCubeDescription, isApplicable, setUp, tearDown
-
Methods inherited from class mondrian.rolap.BatchTestCase
assertNative, assertNoQuerySql, assertNotNative, assertQuerySql, assertQuerySql, assertQuerySql, assertQuerySqlOrNot, assertRequestSql, assertRequestSql, checkNative, checkNative, checkNative, checkNotNative, checkNotNative, checkNotNative, createBatch, createBatch, createRequest, createRequest, createRequest, createRequest, dialectize, executeQuery, getCube, getFoodMartConnection, getGroupingSet, getMeasure, mysqlPattern, sqlPattern
-
Methods inherited from class mondrian.test.FoodMartTestCase
allMember, assertAxisReturns, assertAxisThrows, assertBooleanExprReturns, assertExprReturns, assertExprThrows, assertQueriesReturnSimilarResults, assertQueryReturns, assertQueryThrows, assertSize, cubeByName, execute, executeExpr, executeQuery, executeSingletonAxis, genderMembersIncludingAll, getConnection, getDimensionWithName, isDefaultNullMemberRepresentation, isGroupingSetsSupported, member, productMembersPotScrubbersPotsAndPans, storeMembersCAAndOR, storeMembersUsaAndCanada, verifySameNativeAndNot, warehouseMembersCanadaMexicoUsa
-
-
-
-
Method Detail
-
testCrossJoin
public void testCrossJoin() throws java.lang.Exception
- Throws:
java.lang.Exception
-
getDirectoryName
protected java.lang.String getDirectoryName()
- Specified by:
getDirectoryName
in classCsvDBTestCase
-
getFileName
protected java.lang.String getFileName()
- Specified by:
getFileName
in classCsvDBTestCase
-
getCubeDescription
protected java.lang.String getCubeDescription()
- Overrides:
getCubeDescription
in classCsvDBTestCase
-
-