presto-main/src/main/java/io/prestosql/sql/planner/iterative/rule/ImplementBernoulliSampleAsFilter.java/ImplementBernoulliSampleAsFilter/apply
class ImplementBernoulliSampleAsFilter:    @Override
    public Result apply(SampleNode sample, Captures captures, Context context)
    {
        return Result.ofPlanNode(new FilterNode(
                sample.getId(),
                sample.getSource(),
                new ComparisonExpression(
                        ComparisonExpression.Operator.LESS_THAN,
                        new FunctionCallBuilder(metadata)
                                .setName(QualifiedName.of("rand"))
                                .build(),
                        new DoubleLiteral(Double.toString(sample.getSampleRatio())))));
    }