| 605 | } |
| 606 | |
| 607 | String PlanPrinter::TextPrinter::printStatistics(const PlanNodeBase & plan, const TextPrinterIntent &) const |
| 608 | { |
| 609 | if (!settings.stats) |
| 610 | return ""; |
| 611 | std::stringstream out; |
| 612 | const auto & stats = plan.getStatistics(); |
| 613 | out << "Est. " << (stats ? std::to_string(stats.value()->getRowCount()) : "?") << " rows"; |
| 614 | if (costs.contains(plan.getId())) |
| 615 | out << ", cost " << std::scientific << costs.at(plan.getId()); |
| 616 | return out.str(); |
| 617 | } |
| 618 | |
| 619 | String PlanPrinter::TextPrinter::printStepProfiles(PlanNodeBase & plan, const TextPrinterIntent & intent, const StepProfiles & profiles) |
| 620 | { |
nothing calls this directly
no test coverage detected