public static RexNode toExprNode(ColumnInfo columnInfo, RowResolver rowResolver, int offset, RexBuilder rexBuilder)
      throws SemanticException {
    RexNodeExprFactory factory = new RexNodeExprFactory(rexBuilder);
    return factory.toExpr(columnInfo, rowResolver, offset);
  }
Transforms column information into the corresponding Calcite RexNode.
ql/src/java/org/apache/hadoop/hive/ql/parse/type/RexNodeTypeCheck.java