mondrian.rolap
public class TestAggregationManager extends BatchTestCase
AggregationManager
.BatchTestCase.Bomb, BatchTestCase.CellRequestConstraint, BatchTestCase.TestCase, BatchTestCase.TestListener
cubeNameSales, fieldGender, fieldProductDepartment, fieldProductFamily, fieldValueProductDepartment, fieldValuesGender, fieldValuesProductFamily, fieldValuesYear, fieldYear, measureUnitSales, tableCustomer, tableProductClass, tableTime
propSaver
Constructor and Description |
---|
TestAggregationManager() |
TestAggregationManager(String name) |
Modifier and Type | Method and Description |
---|---|
protected void |
setUp() |
protected void |
tearDown() |
void |
testAggChildMembersOfLeaf()
As
testAggMembers() , but asks for children of a leaf level. |
void |
testAggMembers()
Tests that an aggregate table is used to speed up a
<Member>.Children expression. |
void |
testAggNameApproxRowCount()
This is a test for MONDRIAN-918 and MONDRIAN-903.
|
void |
testAggregatingTuples() |
void |
testCollapsedChildren()
this test verifies the collapsed children code in SqlMemberSource
|
void |
testColumnCadinalityCache()
Test that once fetched, column cardinality can be shared between
different queries using the same connection.
|
void |
testCountDistinctAggMatch() |
void |
testCountDistinctAggMiss() |
void |
testCountDistinctBatchLoading() |
void |
testCountDistinctCannotRollup() |
void |
testCountDistinctRollup2()
As above, but we rollup [Marital Status] but not [Gender].
|
void |
testCountDistinctRollupAlongDim()
Now, here's a funny thing.
|
void |
testCountDistinctWithConstraintAggMiss() |
void |
testFemaleCustomerCount() |
void |
testFemaleCustomerCountWithConstraints() |
void |
testFemaleUnitSales() |
void |
testFemaleUnitSalesSql()
Tests that a request for ([Measures].[Unit Sales], [Gender].[F])
generates the correct SQL.
|
void |
testHierarchyInFactTable()
If a hierarchy lives in the fact table, we should not generate a join.
|
void |
testKeyExpressionCardinalityCache() |
void |
testLevelKeyAsSqlExpWithAgg()
Testcase for
bug MONDRIAN-812.
|
void |
testMultipleMeasures()
Test a batch containing multiple measures:
(store_state=CA, gender=F, measure=[Unit Sales])
(store_state=CA, gender=M, measure=[Store Sales])
(store_state=OR, gender=M, measure=[Unit Sales])
|
void |
testNonCollapsedAggregate() |
void |
testNonEmptyCrossJoinLoneAxis()
Tests that a NonEmptyCrossJoin uses the measure referenced by the query
(Store Sales) instead of the default measure (Unit Sales) in the case
where the query only has one result axis.
|
void |
testNoNullPtrInCellRequest()
This test case tests for a null pointer that was being thrown
inside of CellRequest.
|
void |
testOrdinalExprAggTuplesAndChildren() |
void |
testTwoNonCollapsedAggregate() |
void |
testUniqueMembers()
Tests that if a level is marked 'unique members', then its parent
is not constrained.
|
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, getRegistry, makeConstraintCountryState, makeConstraintProductFamilyDepartment, makeConstraintYearQuarterMonth
allMember, assertAxisReturns, assertAxisThrows, assertBooleanExprReturns, assertExprReturns, assertExprThrows, assertQueriesReturnSimilarResults, assertQueryReturns, assertQueryThrows, assertSize, cubeByName, execute, executeExpr, executeQuery, executeSingletonAxis, genderMembersIncludingAll, getConnection, getDimensionWithName, getTestContext, isDefaultNullMemberRepresentation, isGroupingSetsSupported, member, productMembersPotScrubbersPotsAndPans, storeMembersCAAndOR, storeMembersUsaAndCanada, warehouseMembersCanadaMexicoUsa
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame
public TestAggregationManager(String name)
public TestAggregationManager()
protected void tearDown() throws Exception
tearDown
in class FoodMartTestCase
Exception
public void testFemaleUnitSales()
public void testFemaleCustomerCount()
public void testFemaleCustomerCountWithConstraints()
public void testFemaleUnitSalesSql()
public void testMultipleMeasures()
public void testUniqueMembers()
public void testNonEmptyCrossJoinLoneAxis()
public void testHierarchyInFactTable()
public void testCountDistinctAggMiss()
public void testCountDistinctAggMatch()
public void testCountDistinctCannotRollup()
public void testCountDistinctRollupAlongDim()
public void testCountDistinctRollup2()
public void testCountDistinctBatchLoading()
public void testAggMembers()
<Member>.Children
expression.public void testAggChildMembersOfLeaf()
testAggMembers()
, but asks for children of a leaf level.
Rewrite using an aggregate table is not possible, so just check that it
gets the right result.public void testNoNullPtrInCellRequest()
public void testColumnCadinalityCache()
Test also that expressions with only table alias difference do not share cardinality result.
public void testKeyExpressionCardinalityCache()
public void testCountDistinctWithConstraintAggMiss()
public void testOrdinalExprAggTuplesAndChildren()
public void testAggregatingTuples()
public void testCollapsedChildren()
public void testLevelKeyAsSqlExpWithAgg()
public void testAggNameApproxRowCount()
public void testNonCollapsedAggregate() throws Exception
Exception