Class InterpreterTest


  • public class InterpreterTest
    extends java.lang.Object
    Unit tests for Interpreter.
    • Field Detail

      • rootSchema

        private org.apache.calcite.schema.SchemaPlus rootSchema
      • planner

        private org.apache.calcite.tools.Planner planner
    • Constructor Detail

      • InterpreterTest

        public InterpreterTest()
    • Method Detail

      • setUp

        public void setUp()
      • tearDown

        public void tearDown()
      • testInterpretProjectFilterValues

        public void testInterpretProjectFilterValues()
                                              throws java.lang.Exception
        Tests executing a simple plan using an interpreter.
        Throws:
        java.lang.Exception
      • testInterpretOrder

        public void testInterpretOrder()
                                throws java.lang.Exception
        Tests a plan where the sort field is projected away.
        Throws:
        java.lang.Exception
      • assertRows

        private static void assertRows​(org.apache.calcite.interpreter.Interpreter interpreter,
                                       java.lang.String... rows)
      • assertRowsUnordered

        private static void assertRowsUnordered​(org.apache.calcite.interpreter.Interpreter interpreter,
                                                java.lang.String... rows)
      • assertRows

        private static void assertRows​(org.apache.calcite.interpreter.Interpreter interpreter,
                                       boolean unordered,
                                       java.lang.String... rows)
      • testInterpretTable

        public void testInterpretTable()
                                throws java.lang.Exception
        Tests executing a simple plan using an interpreter.
        Throws:
        java.lang.Exception
      • testInterpretScannableTable

        public void testInterpretScannableTable()
                                         throws java.lang.Exception
        Tests executing a plan on a ScannableTable using an interpreter.
        Throws:
        java.lang.Exception
      • testAggregateCount

        public void testAggregateCount()
                                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testAggregateMax

        public void testAggregateMax()
                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testAggregateMin

        public void testAggregateMin()
                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testAggregateGroup

        public void testAggregateGroup()
                                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testAggregateGroupFilter

        public void testAggregateGroupFilter()
                                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testInterpretSimpleScannableTable

        public void testInterpretSimpleScannableTable()
                                               throws java.lang.Exception
        Tests executing a plan on a single-column ScannableTable using an interpreter.
        Throws:
        java.lang.Exception
      • testInterpretUnionAll

        public void testInterpretUnionAll()
                                   throws java.lang.Exception
        Tests executing a UNION ALL query using an interpreter.
        Throws:
        java.lang.Exception
      • testInterpretUnion

        public void testInterpretUnion()
                                throws java.lang.Exception
        Tests executing a UNION query using an interpreter.
        Throws:
        java.lang.Exception