Class HiveParserTypeCheckCtx

  • All Implemented Interfaces:
    org.apache.hadoop.hive.ql.lib.NodeProcessorCtx
    Direct Known Subclasses:
    HiveParserJoinTypeCheckCtx

    public class HiveParserTypeCheckCtx
    extends Object
    implements org.apache.hadoop.hive.ql.lib.NodeProcessorCtx
    Counterpart of hive's org.apache.hadoop.hive.ql.parse.TypeCheckCtx.
    • Field Detail

      • LOG

        protected static final org.slf4j.Logger LOG
    • Constructor Detail

      • HiveParserTypeCheckCtx

        public HiveParserTypeCheckCtx​(HiveParserRowResolver inputRR,
                                      org.apache.calcite.tools.FrameworkConfig frameworkConfig,
                                      org.apache.calcite.plan.RelOptCluster cluster)
        Constructor.
        Parameters:
        inputRR - The input row resolver of the previous operator.
      • HiveParserTypeCheckCtx

        public HiveParserTypeCheckCtx​(HiveParserRowResolver inputRR,
                                      boolean useCaching,
                                      boolean foldExpr,
                                      org.apache.calcite.tools.FrameworkConfig frameworkConfig,
                                      org.apache.calcite.plan.RelOptCluster cluster)
      • HiveParserTypeCheckCtx

        public HiveParserTypeCheckCtx​(HiveParserRowResolver inputRR,
                                      boolean useCaching,
                                      boolean foldExpr,
                                      boolean allowStatefulFunctions,
                                      boolean allowDistinctFunctions,
                                      boolean allowGBExprElimination,
                                      boolean allowAllColRef,
                                      boolean allowFunctionStar,
                                      boolean allowWindowing,
                                      boolean allowIndexExpr,
                                      boolean allowSubQueryExpr,
                                      org.apache.calcite.tools.FrameworkConfig frameworkConfig,
                                      org.apache.calcite.plan.RelOptCluster cluster)
    • Method Detail

      • setInputRR

        public void setInputRR​(HiveParserRowResolver inputRR)
        Parameters:
        inputRR - the inputRR to set
      • setOuterRR

        public void setOuterRR​(HiveParserRowResolver outerRR)
        Parameters:
        outerRR - the outerRR to set
      • setSubqueryToRelNode

        public void setSubqueryToRelNode​(Map<HiveParserASTNode,​org.apache.calcite.rel.RelNode> subqueryToRelNode)
        Parameters:
        subqueryToRelNode - the subqueryToRelNode to set
      • getSubqueryToRelNode

        public Map<HiveParserASTNode,​org.apache.calcite.rel.RelNode> getSubqueryToRelNode()
        Returns:
        the outerRR
      • setUnparseTranslator

        public void setUnparseTranslator​(HiveParserUnparseTranslator unparseTranslator)
        Parameters:
        unparseTranslator - the unparseTranslator to set
      • setAllowStatefulFunctions

        public void setAllowStatefulFunctions​(boolean allowStatefulFunctions)
        Parameters:
        allowStatefulFunctions - whether to allow stateful UDF invocations
      • getAllowStatefulFunctions

        public boolean getAllowStatefulFunctions()
        Returns:
        whether to allow stateful UDF invocations
      • setError

        public void setError​(String error,
                             HiveParserASTNode errorSrcNode)
        Parameters:
        error - the error to set
      • getError

        public String getError()
        Returns:
        the error
      • setAllowDistinctFunctions

        public void setAllowDistinctFunctions​(boolean allowDistinctFunctions)
      • getAllowDistinctFunctions

        public boolean getAllowDistinctFunctions()
      • getAllowGBExprElimination

        public boolean getAllowGBExprElimination()
      • getallowAllColRef

        public boolean getallowAllColRef()
      • getallowFunctionStar

        public boolean getallowFunctionStar()
      • getallowWindowing

        public boolean getallowWindowing()
      • getallowIndexExpr

        public boolean getallowIndexExpr()
      • getallowSubQueryExpr

        public boolean getallowSubQueryExpr()
      • isUseCaching

        public boolean isUseCaching()
      • isFoldExpr

        public boolean isFoldExpr()
      • getSqlOperatorTable

        public org.apache.calcite.sql.SqlOperatorTable getSqlOperatorTable()
      • getTypeFactory

        public org.apache.calcite.rel.type.RelDataTypeFactory getTypeFactory()
      • getCluster

        public org.apache.calcite.plan.RelOptCluster getCluster()