String query,
Map<String, LogicalPlan> aliases,
Map<OperatorKey, LogicalOperator> opTable)
throws IOException, ParseException {
ByteArrayInputStream in = new ByteArrayInputStream(query.getBytes());
QueryParser parser = new QueryParser(in, pigContext, scope, aliases, opTable);
return parser.Parse();
}