builder.groupIndexColumn("t1", "y_y", "test", "t2", "y", 0);
builder.groupIndexColumn("t1", "y_y", "test", "t1", "y", 1);
}
private AISBuilder createSimpleValidGroup() {
AISBuilder builder = new AISBuilder();
builder.table("test", "t1");
builder.column("test", "t1", "c1", 0, intType, false, null, null);
builder.column("test", "t1", "x", 1, intType, false, null, null);
builder.column("test", "t1", "y", 2, intType, false, null, null);
builder.pk("test", "t1");
builder.indexColumn("test", "t1", Index.PRIMARY, "c1", 0, true, null);
builder.table("test", "t2");
builder.column("test", "t2", "c1", 0, intType, false, null, null);
builder.column("test", "t2", "c2", 1, intType, false, null, null);
builder.column("test", "t2", "y", 2, intType, false, null, null);
builder.basicSchemaIsComplete();
builder.createGroup("t1", "test");
builder.addTableToGroup("t1", "test", "t1");
builder.joinTables("t2/t1", "test", "t1", "test", "t2");
builder.joinColumns("t2/t1", "test", "t2", "c1", "test", "t2", "c2");
builder.addJoinToGroup("t1", "t2/t1", 0);
builder.groupingIsComplete();
return builder;
}