}
@Test
public void testNonRegularOuterJoinFailure() {
LogicalPlanTester lpt = new LogicalPlanTester();
lpt.buildPlan("a = load 'a.txt' as (n:chararray, a:int); ");
lpt.buildPlan("b = load 'b.txt' as (n:chararray, m:chararray); ");
String[] types = new String[] { "left", "right", "full" };
String[] joinTypes = new String[] { "replicated", "repl"};
for (int i = 0; i < types.length; i++) {
for(int j = 0; j < joinTypes.length; j++) {
boolean errCaught = false;
try {
lpt.buildPlanThrowExceptionOnError("d = join a by $0 " +
types[i] + " outer, b by $0 using '" + joinTypes[j] +"';");
} catch(Exception e) {
errCaught = true;
// This after adding support of LeftOuter Join to replicated Join