use of org.apache.flink.client.program.OptimizerPlanEnvironment.ProgramAbortException in project flink by apache.
the class ConnectedComponentsCoGroupTest method getConnectedComponentsCoGroupPlan.
public static Plan getConnectedComponentsCoGroupPlan() {
// prepare the test environment
PreviewPlanEnvironment env = new PreviewPlanEnvironment();
env.setAsContext();
try {
ConnectedComponentsWithCoGroup(new String[] { DEFAULT_PARALLELISM_STRING, IN_FILE, IN_FILE, OUT_FILE, "100" });
} catch (ProgramAbortException pae) {
// all good.
} catch (Exception e) {
e.printStackTrace();
Assert.fail("ConnectedComponentsWithCoGroup failed with an exception");
}
return env.getPlan();
}
Aggregations