Class AggregationOnDistinctCountMeasuresTest


  • public class AggregationOnDistinctCountMeasuresTest
    extends BatchTestCase
    AggregationOnDistinctCountMeasureTest tests the Distinct Count functionality with tuples and members.
    Since:
    19 December, 2007
    Author:
    ajogleka
    • Constructor Detail

      • AggregationOnDistinctCountMeasuresTest

        public AggregationOnDistinctCountMeasuresTest()
    • Method Detail

      • setUp

        protected void setUp()
                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testTupleWithAllLevelMembersOnly

        public void testTupleWithAllLevelMembersOnly()
      • testCrossJoinOfAllMembers

        public void testCrossJoinOfAllMembers()
      • testCrossJoinMembersWithASingleMember

        public void testCrossJoinMembersWithASingleMember()
      • testCrossJoinMembersWithSetOfMembers

        public void testCrossJoinMembersWithSetOfMembers()
      • testCrossJoinParticularMembersFromTwoDimensions

        public void testCrossJoinParticularMembersFromTwoDimensions()
      • testDistinctCountOnSetOfMembersFromOneDimension

        public void testDistinctCountOnSetOfMembersFromOneDimension()
      • testDistinctCountWithAMeasureAsPartOfTuple

        public void testDistinctCountWithAMeasureAsPartOfTuple()
      • testDistinctCountOnSetOfMembers

        public void testDistinctCountOnSetOfMembers()
      • testDistinctCountOnTuplesWithSomeNonJoiningDimensions

        public void testDistinctCountOnTuplesWithSomeNonJoiningDimensions()
      • testAggregationListOptimizationForChildren

        public void testAggregationListOptimizationForChildren()
      • testDistinctCountOnMembersWithNonJoiningDimensionNotAtAllLevel

        public void testDistinctCountOnMembersWithNonJoiningDimensionNotAtAllLevel()
      • testNonJoiningDimensionWithAllMember

        public void testNonJoiningDimensionWithAllMember()
      • testCrossJoinOfJoiningAndNonJoiningDimensionWithAllMember

        public void testCrossJoinOfJoiningAndNonJoiningDimensionWithAllMember()
      • testCrossJoinOfJoiningAndNonJoiningDimension

        public void testCrossJoinOfJoiningAndNonJoiningDimension()
      • testAggregationOverLargeListGeneratesError

        public void testAggregationOverLargeListGeneratesError()
      • testMultiLevelMembersNullParents

        public void testMultiLevelMembersNullParents()
      • testMultiLevelMembersMixedNullNonNullParent

        public void testMultiLevelMembersMixedNullNonNullParent()
      • testMultiLevelsMixedNullNonNullChild

        public void testMultiLevelsMixedNullNonNullChild()
      • testAggregationOnCJofMembersGeneratesOptimalQuery

        public void testAggregationOnCJofMembersGeneratesOptimalQuery()
      • testCanNotBatchForDifferentCompoundPredicate

        public void testCanNotBatchForDifferentCompoundPredicate()
      • testDistinctCountInNonGroupingSetsQuery

        public void testDistinctCountInNonGroupingSetsQuery()
        Test distinct count agg happens in non gs query for subset of members with mixed measures.
      • testAggregationOfMembersAndDefaultMemberWithoutGroupingSets

        public void testAggregationOfMembersAndDefaultMemberWithoutGroupingSets()
      • testOptimizeChildren

        public void testOptimizeChildren()
      • testOptimizeListWhenTuplesAreFormedWithDifferentLevels

        public void testOptimizeListWhenTuplesAreFormedWithDifferentLevels()
      • testOptimizeListWithTuplesOfLength3

        public void testOptimizeListWithTuplesOfLength3()
      • testOptimizeChildrenForTuplesWithLength1

        public void testOptimizeChildrenForTuplesWithLength1()
      • testOptimizeChildrenForTuplesWithLength3

        public void testOptimizeChildrenForTuplesWithLength3()
      • testOptimizeChildrenWhenTuplesAreFormedWithDifferentLevels

        public void testOptimizeChildrenWhenTuplesAreFormedWithDifferentLevels()
      • testWhetherCJOfChildren

        public void testWhetherCJOfChildren()
      • testShouldNotRemoveDuplicateTuples

        public void testShouldNotRemoveDuplicateTuples()
      • testMemberCountIsSameForAllMembersInTuple

        public void testMemberCountIsSameForAllMembersInTuple()
      • testMemberCountIsNotSameForAllMembersInTuple

        public void testMemberCountIsNotSameForAllMembersInTuple()
      • testAggregatesAtTheSameLevelForNormalAndDistinctCountMeasure

        public void testAggregatesAtTheSameLevelForNormalAndDistinctCountMeasure()
      • testDistinctCountForAggregatesAtTheSameLevel

        public void testDistinctCountForAggregatesAtTheSameLevel()
      • testMondrian906

        public void testMondrian906()
        This test makes sure that the AggregateFunDef will not optimize a tuples list when the rollup policy is set to something else than FULL, as it results in wrong data for a distinct count operation when using roles to narrow down the members access.
      • testTupleOptimizationBug1225

        public void testTupleOptimizationBug1225()
        This is a test for MONDRIAN-1225

        The optimization routine for tuple lists was implementing a single side of an IF conditional, which resulted in an NPE.

      • testDistinctCountAggMeasure

        public void testDistinctCountAggMeasure()
        Test case for MONDRIAN-1370
        Wrong results for aggregate with distinct count measure.