Class LatticeSuggesterTest


  • public class LatticeSuggesterTest
    extends java.lang.Object
    Unit tests for LatticeSuggester.
    • Constructor Detail

      • LatticeSuggesterTest

        public LatticeSuggesterTest()
    • Method Detail

      • testEmpDept

        public void testEmpDept()
                         throws java.lang.Exception
        Some basic query patterns on the Scott schema with "EMP" and "DEPT" tables.
        Throws:
        java.lang.Exception
      • testFoodmart

        public void testFoodmart()
                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testAggregateExpression

        public void testAggregateExpression()
                                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • hasMeasureNames

        private org.hamcrest.Matcher<java.util.List<org.apache.calcite.materialize.Lattice>> hasMeasureNames​(int ordinal,
                                                                                                             java.lang.String... names)
      • hasDerivedColumnNames

        private org.hamcrest.Matcher<java.util.List<org.apache.calcite.materialize.Lattice>> hasDerivedColumnNames​(int ordinal,
                                                                                                                   java.lang.String... names)
      • testSharedSnowflake

        public void testSharedSnowflake()
                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testExpressionInAggregate

        public void testExpressionInAggregate()
                                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • checkFoodMartAll

        private void checkFoodMartAll​(boolean evolve)
                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testFoodMartAll

        public void testFoodMartAll()
                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testFoodMartAllEvolve

        public void testFoodMartAllEvolve()
                                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testContains

        public void testContains()
                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testEvolve

        public void testEvolve()
                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testExpression

        public void testExpression()
                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testExpressionInJoin

        public void testExpressionInJoin()
                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • isGraphs

        private org.hamcrest.BaseMatcher<java.util.List<org.apache.calcite.materialize.Lattice>> isGraphs​(java.lang.String... strings)
        Creates a matcher that matches query graphs to strings.