use of org.apache.hyracks.algebricks.examples.piglet.compiler.PigletCompiler in project asterixdb by apache.
the class PigletTestCase method testPiglet.
@Test
public void testPiglet() {
try {
FileReader in = new FileReader(file);
try {
PigletCompiler c = new PigletCompiler();
List<ASTNode> ast = c.parse(in);
JobSpecification jobSpec = c.compile(ast);
System.err.println(jobSpec.toJSON());
} finally {
in.close();
}
} catch (Exception e) {
throw new RuntimeException(e);
}
}
Aggregations