presto-main/src/main/java/io/prestosql/sql/planner/optimizations/AddExchanges.java/Rewriter/visitFilter
class Rewriter:        @Override
        public PlanWithProperties visitFilter(FilterNode node, PreferredProperties preferredProperties)
        {
            if (node.getSource() instanceof TableScanNode) {
                Optional<PlanWithProperties> plan = planTableScan((TableScanNode) node.getSource(), node.getPredicate());

                if (plan.isPresent()) {
                    return plan.get();
                }
            }

            return rebaseAndDeriveProperties(node, planChild(node, preferredProperties));
        }