RexNode genRexNode(ASTNode expr, RowResolver input, boolean useCaching,
      boolean foldExpr, RexBuilder rexBuilder) throws SemanticException {
    TypeCheckCtx tcCtx = new TypeCheckCtx(input, rexBuilder, useCaching, foldExpr);
    tcCtx.setUnparseTranslator(unparseTranslator);
    return genRexNode(expr, input, tcCtx, conf);
  }
Generates a Calcite {@link RexNode} for the expression with TypeCheckCtx.
ql/src/java/org/apache/hadoop/hive/ql/parse/CalcitePlanner.java