use of com.facebook.presto.sql.tree.ArithmeticUnaryExpression in project presto by prestodb.
the class TestEliminateCrossJoins method testGiveUpOnNonIdentityProjections.
@Test
public void testGiveUpOnNonIdentityProjections() {
PlanNode plan = join(project(join(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