MCPcopy Create free account
hub / github.com/ByConity/ByConity / printStatistics

Method printStatistics

src/QueryPlan/PlanPrinter.cpp:607–617  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

605}
606
607String 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
619String PlanPrinter::TextPrinter::printStepProfiles(PlanNodeBase & plan, const TextPrinterIntent & intent, const StepProfiles & profiles)
620{

Callers

nothing calls this directly

Calls 8

getStatisticsMethod · 0.80
to_stringFunction · 0.50
getRowCountMethod · 0.45
valueMethod · 0.45
containsMethod · 0.45
getIdMethod · 0.45
atMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected