use of io.prestosql.sql.tree.ArithmeticUnaryExpression in project hetu-core by openlookeng.
the class TestEliminateCrossJoins method testGiveUpOnNonIdentityProjections.
@Test
public void testGiveUpOnNonIdentityProjections() {
PlanNode plan = joinNode(projectNode(joinNode(values(symbol("a1")), values(symbol("b"))), symbol("a2"), new ArithmeticUnaryExpression(MINUS, new SymbolReference("a1"))), values(symbol("c")), symbol("a2"), symbol("c"), symbol("c"), symbol("b"));
assertEquals(JoinGraph.buildFrom(plan).size(), 2);
}
Aggregations