| 50 | } |
| 51 | |
| 52 | static TPlanNodeExecSummary buildPlanNode(TPlanNodeId node_id, TFragmentIdx fragment_idx, |
| 53 | const string& label, const string& detail, int32_t num_hosts, int32_t num_children, |
| 54 | bool is_broadcast, const TExecStats& estimates) { |
| 55 | TPlanNodeExecSummary node; |
| 56 | |
| 57 | node.__set_node_id(node_id); |
| 58 | node.__set_fragment_idx(fragment_idx); |
| 59 | node.__set_label(label); |
| 60 | node.__set_label_detail(detail); |
| 61 | node.__set_num_children(num_children); |
| 62 | node.__set_estimated_stats(estimates); |
| 63 | if (is_broadcast) { |
| 64 | node.__set_is_broadcast(is_broadcast); |
| 65 | } |
| 66 | node.__set_num_hosts(num_hosts); |
| 67 | |
| 68 | return node; |
| 69 | } |
| 70 | |
| 71 | // Constructs a simple exec summary and ensures the text table is generated correctly for |
| 72 | // that exec summary. |