File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
presto-main/src/test/java/com/facebook/presto/sql/planner/iterative/rule/test Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 51
51
public class RuleAssert
52
52
{
53
53
private final Metadata metadata ;
54
- private final StatsCalculator statsCalculator ;
54
+ private StatsCalculator statsCalculator ;
55
55
private final CostCalculator costCalculator ;
56
56
private Session session ;
57
57
private final Rule rule ;
@@ -96,6 +96,13 @@ public RuleAssert withSession(Session session)
96
96
return this ;
97
97
}
98
98
99
+ public RuleAssert withStatsCalculator (StatsCalculator statsCalculator )
100
+ {
101
+ checkState (lookup == null , "lookup has been set" );
102
+ this .statsCalculator = statsCalculator ;
103
+ return this ;
104
+ }
105
+
99
106
public RuleAssert on (Function <PlanBuilder , PlanNode > planProvider )
100
107
{
101
108
checkArgument (plan == null , "plan has already been set" );
You can’t perform that action at this time.
0 commit comments