| 117 | } |
| 118 | |
| 119 | string impala::PrintExecSummary(const TExecSummary& exec_summary) { |
| 120 | // Bail if Coordinator::InitExecProfile() has not been called. |
| 121 | if (!exec_summary.__isset.nodes) return ""; |
| 122 | |
| 123 | TablePrinter printer; |
| 124 | printer.set_max_output_width(1000); |
| 125 | printer.AddColumn("Operator", true); |
| 126 | printer.AddColumn("#Hosts", false); |
| 127 | printer.AddColumn("#Inst", false); |
| 128 | printer.AddColumn("Avg Time", false); |
| 129 | printer.AddColumn("Max Time", false); |
| 130 | printer.AddColumn("#Rows", false); |
| 131 | printer.AddColumn("Est. #Rows", false); |
| 132 | printer.AddColumn("Peak Mem", false); |
| 133 | printer.AddColumn("Est. Peak Mem", false); |
| 134 | printer.AddColumn("Detail", true); |
| 135 | |
| 136 | vector<vector<string>> rows; |
| 137 | int node_idx = 0; |
| 138 | ::PrintExecSummary(exec_summary, 0, false, &node_idx, &rows); |
| 139 | for (int i = 0; i < rows.size(); ++i) { |
| 140 | printer.AddRow(rows[i]); |
| 141 | } |
| 142 | return printer.ToString("\n"); |
| 143 | } |
nothing calls this directly
no test coverage detected