Package mondrian.test
Class NativeSetEvaluationTest
- java.lang.Object
-
- TestCase
-
- mondrian.test.FoodMartTestCase
-
- mondrian.rolap.BatchTestCase
-
- mondrian.test.NativeSetEvaluationTest
-
public class NativeSetEvaluationTest extends BatchTestCase
Test native evaluation of supported set operations.
-
-
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 NativeSetEvaluationTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
assertQuerySql(String mdxQuery, SqlPattern[] patterns)
Checks that a given MDX query results in a particular SQL statement being generated.void
testAggTCNoExplicitMeasure()
Aggregate with default measure and TopCount without measure argument.void
testCJSameDimAsSlicerNamedSet()
Crossjoin that uses same dimension as slicer but is independent from it, evaluated via a named set.void
testCompoundSlicerNativeEval()
void
testCompoundSlicerNonUniqueMemberNames1413()
void
testConstraintCacheIncludesMultiPositionSlicer()
void
testFilterWithDiffLevelCompoundSlicer()
void
testLoopDetection()
Test evaluation loop detection still works after changes to make it more permissable.void
testMultipleAllWithInExpr()
Test case for Mondrian-1291: NPE on native set with at least two elements and two all members for same dimension in slicervoid
testNativeFilterTupleCompoundSlicer1861()
void
testNativeFilterWithAggDescendants()
void
testNativeFilterWithCompoundSlicer()
void
testNativeFilterWithCompoundSlicer2049()
void
testNativeFilterWithCompoundSlicerCJ()
void
testNativeHonorsRoleRestrictions()
void
testNativeSetsCacheClearing()
tests if cache associated with Native Sets is flushed.void
testNativeTopCountWithAggFlatSet()
Simple enumerated aggregate.void
testNativeTopCountWithAggMemberNamedSet()
Same as above, but using a named setvoid
testNativeTopCountWithMemberOnlySlicer()
Test case for Mondrian-1426: Native top count support for Member expressions in Calculated member slicervoid
testNativeTopCountWithMemberSumSlicer()
Test case for Mondrian-1430: Native top count support for + and tuple (Parentheses) expressions in Calculated member slicervoid
testNativeTopCountWithParenthesesMemberSlicer()
Test case for Mondrian-1430: Native top count support for + and tuple (Parentheses) expressions in Calculated member slicervoid
testNativeVirtualRestrictedSet()
This is a test for MONDRIAN-1630void
testOverridingCompoundFilter()
This test demonstrates complex interaction between member calcs and a compound slicervoid
testSlicerTuplesFullCrossJoin()
Same as before but without combinations missing in the crossjoinvoid
testSlicerTuplesPartialCrossJoin()
Check if getSlicerMembers in native evaluation context doesn't break the results as in MONDRIAN-1187void
testSnowflakeDimInSlicerBug1407()
void
testTopCountWithAggregatedMemberAggStar()
Now that some native evaluation is supporting aggregated members, we need to push that logic down to the AggStar selection-
Methods inherited from class mondrian.rolap.BatchTestCase
assertNative, assertNoQuerySql, assertNotNative, 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, getTestContext, isDefaultNullMemberRepresentation, isGroupingSetsSupported, member, productMembersPotScrubbersPotsAndPans, storeMembersCAAndOR, storeMembersUsaAndCanada, tearDown, verifySameNativeAndNot, warehouseMembersCanadaMexicoUsa
-
-
-
-
Method Detail
-
assertQuerySql
protected void assertQuerySql(String mdxQuery, SqlPattern[] patterns)
Checks that a given MDX query results in a particular SQL statement being generated.- Overrides:
assertQuerySql
in classBatchTestCase
- Parameters:
mdxQuery
- MDX querypatterns
- Set of patterns for expected SQL statements
-
testNativeTopCountWithAggFlatSet
public void testNativeTopCountWithAggFlatSet()
Simple enumerated aggregate.
-
testNativeTopCountWithAggMemberNamedSet
public void testNativeTopCountWithAggMemberNamedSet()
Same as above, but using a named set
-
testNativeFilterWithAggDescendants
public void testNativeFilterWithAggDescendants()
-
testNativeTopCountWithMemberOnlySlicer
public void testNativeTopCountWithMemberOnlySlicer()
Test case for Mondrian-1426: Native top count support for Member expressions in Calculated member slicer
-
testNativeTopCountWithParenthesesMemberSlicer
public void testNativeTopCountWithParenthesesMemberSlicer()
Test case for Mondrian-1430: Native top count support for + and tuple (Parentheses) expressions in Calculated member slicer
-
testNativeTopCountWithMemberSumSlicer
public void testNativeTopCountWithMemberSumSlicer()
Test case for Mondrian-1430: Native top count support for + and tuple (Parentheses) expressions in Calculated member slicer
-
testAggTCNoExplicitMeasure
public void testAggTCNoExplicitMeasure()
Aggregate with default measure and TopCount without measure argument.
-
testCJSameDimAsSlicerNamedSet
public void testCJSameDimAsSlicerNamedSet()
Crossjoin that uses same dimension as slicer but is independent from it, evaluated via a named set. No loop should happen here.
-
testLoopDetection
public void testLoopDetection()
Test evaluation loop detection still works after changes to make it more permissable.
-
testSlicerTuplesPartialCrossJoin
public void testSlicerTuplesPartialCrossJoin()
Check if getSlicerMembers in native evaluation context doesn't break the results as in MONDRIAN-1187
-
testSlicerTuplesFullCrossJoin
public void testSlicerTuplesFullCrossJoin()
Same as before but without combinations missing in the crossjoin
-
testTopCountWithAggregatedMemberAggStar
public void testTopCountWithAggregatedMemberAggStar()
Now that some native evaluation is supporting aggregated members, we need to push that logic down to the AggStar selection
-
testMultipleAllWithInExpr
public void testMultipleAllWithInExpr()
Test case for Mondrian-1291: NPE on native set with at least two elements and two all members for same dimension in slicer
-
testCompoundSlicerNativeEval
public void testCompoundSlicerNativeEval()
-
testSnowflakeDimInSlicerBug1407
public void testSnowflakeDimInSlicerBug1407()
-
testCompoundSlicerNonUniqueMemberNames1413
public void testCompoundSlicerNonUniqueMemberNames1413()
-
testConstraintCacheIncludesMultiPositionSlicer
public void testConstraintCacheIncludesMultiPositionSlicer()
-
testNativeVirtualRestrictedSet
public void testNativeVirtualRestrictedSet() throws Exception
This is a test for MONDRIAN-1630The baseCube was taken out of the evaluator instead of being passed by the caller, which caused the star column not to be found for the level to evaluate natively as part of the set.
- Throws:
Exception
-
testNativeHonorsRoleRestrictions
public void testNativeHonorsRoleRestrictions()
-
testNativeFilterWithCompoundSlicer
public void testNativeFilterWithCompoundSlicer()
-
testOverridingCompoundFilter
public void testOverridingCompoundFilter()
This test demonstrates complex interaction between member calcs and a compound slicer
-
testNativeFilterWithCompoundSlicerCJ
public void testNativeFilterWithCompoundSlicerCJ()
-
testFilterWithDiffLevelCompoundSlicer
public void testFilterWithDiffLevelCompoundSlicer()
-
testNativeFilterWithCompoundSlicer2049
public void testNativeFilterWithCompoundSlicer2049()
-
testNativeFilterTupleCompoundSlicer1861
public void testNativeFilterTupleCompoundSlicer1861()
-
testNativeSetsCacheClearing
public void testNativeSetsCacheClearing()
tests if cache associated with Native Sets is flushed.- See Also:
- Jira issue
-
-