public static ASTNode dynamicParam(RexDynamicParam param) {
    ASTNode node = (ASTNode)ParseDriver.adaptor.create(HiveParser.TOK_PARAMETER,
        Integer.toString(param.getIndex()));
    return node;
  }
@return an ASTNode representing a (table) reference to a CTE with the specified name and alias.
ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/translator/ASTBuilder.java