Package mondrian.test

Class NativeSetEvaluationTest


  • public class NativeSetEvaluationTest
    extends BatchTestCase
    Test native evaluation of supported set operations.

    • Constructor Detail

      • NativeSetEvaluationTest

        public NativeSetEvaluationTest()
    • Method Detail

      • assertQuerySql

        protected void assertQuerySql​(java.lang.String mdxQuery,
                                      SqlPattern[] patterns)
        Checks that a given MDX query results in a particular SQL statement being generated.
        Overrides:
        assertQuerySql in class BatchTestCase
        Parameters:
        mdxQuery - MDX query
        patterns - 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 java.lang.Exception
        This is a test for MONDRIAN-1630

        The 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:
        java.lang.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