Class SqlToRelTestBase

    • Constructor Detail

      • SqlToRelTestBase

        public SqlToRelTestBase()
    • Method Detail

      • createTester

        protected SqlToRelTestBase.Tester createTester​(org.apache.calcite.sql.validate.SqlConformance conformance)
      • getDiffRepos

        protected DiffRepository getDiffRepos()
        Returns the default diff repository for this test, or null if there is no repository.

        The default implementation returns null.

        Sub-classes that want to use a diff repository can override. Sub-sub-classes can override again, inheriting test cases and overriding selected test results.

        And individual test cases can override by providing a different tester object.

        Diff repository
      • assertValid

        public static void assertValid​(org.apache.calcite.rel.RelNode rel)
        Checks that every node of a relational expression is valid.
        rel - Relational expression