presto-main/src/main/java/io/prestosql/sql/planner/optimizations/QueryCardinalityUtil.java/CardinalityExtractorPlanVisitor/visitFilter
class CardinalityExtractorPlanVisitor:        @Override
        public Range<Long> visitFilter(FilterNode node, Void context)
        {
            Range<Long> sourceCardinalityRange = node.getSource().accept(this, null);
            if (sourceCardinalityRange.hasUpperBound()) {
                return Range.closed(0L, sourceCardinalityRange.upperEndpoint());
            }
            return Range.atLeast(0L);
        }