static ASTNode parse(String query, ParseDriver pd, Configuration conf) throws ParseException {
    ASTNode nd = null;
    nd = pd.parse(query, conf).getTree();
    return (ASTNode) nd.getChild(0);
  }
various Parser tests for INSERT/UPDATE/DELETE
parser/src/test/org/apache/hadoop/hive/ql/parse/TestIUD.java