Class SqlToRelTestBase.TesterImpl

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected TesterImpl​(DiffRepository diffRepos, boolean enableDecorrelate, boolean enableTrim, boolean enableExpand, boolean enableLateDecorrelate, boolean enableTypeCoercion, SqlTestFactory.MockCatalogReaderFactory catalogReaderFactory, java.util.function.Function<org.apache.calcite.plan.RelOptCluster,​org.apache.calcite.plan.RelOptCluster> clusterFactory)
      Creates a TesterImpl.
      protected TesterImpl​(DiffRepository diffRepos, boolean enableDecorrelate, boolean enableTrim, boolean enableExpand, boolean enableLateDecorrelate, boolean enableTypeCoercion, SqlTestFactory.MockCatalogReaderFactory catalogReaderFactory, java.util.function.Function<org.apache.calcite.plan.RelOptCluster,​org.apache.calcite.plan.RelOptCluster> clusterFactory, org.apache.calcite.sql2rel.SqlToRelConverter.Config config, org.apache.calcite.sql.validate.SqlConformance conformance, org.apache.calcite.plan.Context context)  
    • Field Detail

      • planner

        private org.apache.calcite.plan.RelOptPlanner planner
      • opTab

        private org.apache.calcite.sql.SqlOperatorTable opTab
      • enableDecorrelate

        private final boolean enableDecorrelate
      • enableLateDecorrelate

        private final boolean enableLateDecorrelate
      • enableTrim

        private final boolean enableTrim
      • enableExpand

        private final boolean enableExpand
      • enableTypeCoercion

        private final boolean enableTypeCoercion
      • conformance

        private final org.apache.calcite.sql.validate.SqlConformance conformance
      • clusterFactory

        private final java.util.function.Function<org.apache.calcite.plan.RelOptCluster,​org.apache.calcite.plan.RelOptCluster> clusterFactory
      • typeFactory

        private org.apache.calcite.rel.type.RelDataTypeFactory typeFactory
      • config

        public final org.apache.calcite.sql2rel.SqlToRelConverter.Config config
      • context

        private final org.apache.calcite.plan.Context context
    • Constructor Detail

      • TesterImpl

        protected TesterImpl​(DiffRepository diffRepos,
                             boolean enableDecorrelate,
                             boolean enableTrim,
                             boolean enableExpand,
                             boolean enableLateDecorrelate,
                             boolean enableTypeCoercion,
                             SqlTestFactory.MockCatalogReaderFactory catalogReaderFactory,
                             java.util.function.Function<org.apache.calcite.plan.RelOptCluster,​org.apache.calcite.plan.RelOptCluster> clusterFactory)
        Creates a TesterImpl.
        Parameters:
        diffRepos - Diff repository
        enableDecorrelate - Whether to decorrelate
        enableTrim - Whether to trim unused fields
        enableExpand - Whether to expand sub-queries
        catalogReaderFactory - Function to create catalog reader, or null
        clusterFactory - Called after a cluster has been created
      • TesterImpl

        protected TesterImpl​(DiffRepository diffRepos,
                             boolean enableDecorrelate,
                             boolean enableTrim,
                             boolean enableExpand,
                             boolean enableLateDecorrelate,
                             boolean enableTypeCoercion,
                             SqlTestFactory.MockCatalogReaderFactory catalogReaderFactory,
                             java.util.function.Function<org.apache.calcite.plan.RelOptCluster,​org.apache.calcite.plan.RelOptCluster> clusterFactory,
                             org.apache.calcite.sql2rel.SqlToRelConverter.Config config,
                             org.apache.calcite.sql.validate.SqlConformance conformance,
                             org.apache.calcite.plan.Context context)