use of io.prestosql.cost.CostProvider in project hetu-core by openlookeng.
the class RuleAssert method formatPlan.
private String formatPlan(PlanNode plan, TypeProvider types) {
StatsProvider statsProvider = new CachingStatsProvider(statsCalculator, session, types);
CostProvider costProvider = new CachingCostProvider(costCalculator, statsProvider, session, types);
return inTransaction(session -> textLogicalPlan(translateExpressions(plan, types), types, metadata, StatsAndCosts.create(plan, statsProvider, costProvider), session, 2, false));
}
Aggregations