use of io.prestosql.spi.plan.UnionNode in project hetu-core by openlookeng.
the class TestTypeValidator method testValidUnion.
@Test
public void testValidUnion() {
Symbol outputSymbol = planSymbolAllocator.newSymbol("output", DATE);
ListMultimap<Symbol, Symbol> mappings = ImmutableListMultimap.<Symbol, Symbol>builder().put(outputSymbol, columnD).put(outputSymbol, columnD).build();
PlanNode node = new UnionNode(newId(), ImmutableList.of(baseTableScan, baseTableScan), mappings, ImmutableList.copyOf(mappings.keySet()));
assertTypesValid(node);
}
Aggregations