}
public void testUnion() {
Parser<Relation> parser = RelationParser.union(TABLE);
assertParser(parser, "a", table("a"));
assertParser(parser, "a union b", new UnionRelation(table("a"), false, table("b")));
assertParser(parser, "a union all b union (c)",
new UnionRelation(
new UnionRelation(table("a"), true, table("b")),
false, table("c")
)
);
assertParser(parser, "a union all (b union (c))",
new UnionRelation(
table("a"),
true,
new UnionRelation(table("b"), false, table("c"))
)
);
}