presto-main/src/main/java/io/prestosql/sql/planner/plan/JoinNode.java/JoinNode/toExpression
class JoinNode:        public ComparisonExpression toExpression()
        {
            return new ComparisonExpression(ComparisonExpression.Operator.EQUAL, left.toSymbolReference(), right.toSymbolReference());
        }