Class ScannableTableTest


  • public class ScannableTableTest
    extends java.lang.Object
    Unit test for ScannableTable.
    • Field Detail

      • BEATLES

        private static final java.lang.Object[][] BEATLES
    • Constructor Detail

      • ScannableTableTest

        public ScannableTableTest()
    • Method Detail

      • testTens

        public void testTens()
                      throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • testSimple

        public void testSimple()
                        throws java.lang.Exception
        A table with one column.
        Throws:
        java.lang.Exception
      • testSimple2

        public void testSimple2()
                         throws java.lang.Exception
        A table with two columns.
        Throws:
        java.lang.Exception
      • testFilterableTableCooperative

        public void testFilterableTableCooperative()
                                            throws java.lang.Exception
        A filter on a FilterableTable with two columns (cooperative).
        Throws:
        java.lang.Exception
      • testFilterableTableNonCooperative

        public void testFilterableTableNonCooperative()
                                               throws java.lang.Exception
        A filter on a FilterableTable with two columns (noncooperative).
        Throws:
        java.lang.Exception
      • testProjectableFilterableCooperative

        public void testProjectableFilterableCooperative()
                                                  throws java.lang.Exception
        A filter on a ProjectableFilterableTable with two columns (cooperative).
        Throws:
        java.lang.Exception
      • testProjectableFilterableNonCooperative

        public void testProjectableFilterableNonCooperative()
                                                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testProjectableFilterableWithProjectAndFilter

        public void testProjectableFilterableWithProjectAndFilter()
                                                           throws java.lang.Exception
        A filter on a ProjectableFilterableTable with two columns, and a project in the query. (Cooperative)
        Throws:
        java.lang.Exception
      • testProjectableFilterableWithProjectFilterNonCooperative

        public void testProjectableFilterableWithProjectFilterNonCooperative()
                                                                      throws java.lang.Exception
        A filter on a ProjectableFilterableTable with two columns, and a project in the query (NonCooperative).
        Throws:
        java.lang.Exception
      • testPFTableRefusesFilterCooperative

        public void testPFTableRefusesFilterCooperative()
                                                 throws java.lang.Exception
        A filter and project on a ProjectableFilterableTable. The table refuses to execute the filter, so Calcite should add a pull up and transform the filter (projecting the column needed by the filter).
        Throws:
        java.lang.Exception
      • testPFPushDownProjectFilterInAggregateNoGroup

        public void testPFPushDownProjectFilterInAggregateNoGroup()
      • testPFPushDownProjectFilterAggregateGroup

        public void testPFPushDownProjectFilterAggregateGroup()
      • testPFPushDownProjectFilterAggregateNested

        public void testPFPushDownProjectFilterAggregateNested()
      • getFilter

        private static java.lang.Integer getFilter​(boolean cooperative,
                                                   java.util.List<org.apache.calcite.rex.RexNode> filters)
      • tens

        private static org.apache.calcite.linq4j.Enumerator<java.lang.Object[]> tens()
      • beatles

        private static org.apache.calcite.linq4j.Enumerator<java.lang.Object[]> beatles​(java.lang.StringBuilder buf,
                                                                                        java.lang.Integer filter,
                                                                                        int[] projects)