presto-main/src/main/java/io/prestosql/sql/planner/iterative/rule/TransformUncorrelatedSubqueryToJoin.java/TransformUncorrelatedSubqueryToJoin/apply
class TransformUncorrelatedSubqueryToJoin:    @Override
    public Result apply(CorrelatedJoinNode correlatedJoinNode, Captures captures, Context context)
    {
        return Result.ofPlanNode(new JoinNode(
                context.getIdAllocator().getNextId(),
                correlatedJoinNode.getType().toJoinNodeType(),
                correlatedJoinNode.getInput(),
                correlatedJoinNode.getSubquery(),
                ImmutableList.of(),
                ImmutableList.<Symbol>builder()
                        .addAll(correlatedJoinNode.getInput().getOutputSymbols())
                        .addAll(correlatedJoinNode.getSubquery().getOutputSymbols())
                        .build(),
                filter(correlatedJoinNode.getFilter()),
                Optional.empty(),
                Optional.empty(),
                Optional.empty(),
                Optional.empty(),
                ImmutableMap.of()));
    }