public void testRelationalSameOpDifferentPreds() throws FrontendException {
LogicalPlan lp1 = new LogicalPlan();
LogicalSchema aschema1 = new LogicalSchema();
aschema1.addField(new LogicalSchema.LogicalFieldSchema(
"x", null, DataType.INTEGER));
LOLoad A1 = new LOLoad(new FileSpec("/abc",
new FuncSpec(DummyLoad.class.getName(), new String[] {"x", "y"})), aschema1, lp1, null);
lp1.add(A1);
LogicalExpressionPlan fp1 = new LogicalExpressionPlan();
ProjectExpression fy1 = new ProjectExpression(fp1, 0, 0, null);
ConstantExpression fc1 = new ConstantExpression(fp1,
new Integer(0), new LogicalFieldSchema(null, null, DataType.INTEGER));
new EqualExpression(fp1, fy1, fc1);
LOFilter D1 = new LOFilter(lp1, fp1);
LogicalSchema cschema = new LogicalSchema();
cschema.addField(new LogicalSchema.LogicalFieldSchema(
"x", null, DataType.INTEGER));
D1.neverUseForRealSetSchema(cschema);
lp1.add(D1);
lp1.connect(A1, D1);
LogicalPlan lp2 = new LogicalPlan();
LOLoad A2 = new LOLoad(new FileSpec("/abc",
new FuncSpec(DummyLoad.class.getName(), new String[] {"x", "z"})), null, lp2, null);
lp2.add(A2);
LogicalExpressionPlan fp2 = new LogicalExpressionPlan();
ProjectExpression fy2 = new ProjectExpression(fp2, 0, 0, null);