| 34 | : ExecNode(pool, pnode, descs) {} |
| 35 | |
| 36 | Status SingularRowSrcNode::GetNext(RuntimeState* state, RowBatch* row_batch, bool* eos) { |
| 37 | // We do not time this function, check for cancellation, or perform the usual per-batch |
| 38 | // query maintenance because those would dominate the execution cost of this node. |
| 39 | DCHECK(containing_subplan_ != NULL) << "set_containing_subplan() must be called"; |
| 40 | |
| 41 | // Only produces a single row per GetNext() call. |
| 42 | *eos = true; |
| 43 | int row_idx = row_batch->AddRow(); |
| 44 | TupleRow* row = row_batch->GetRow(row_idx); |
| 45 | row_batch->CopyRow(containing_subplan_->current_row(), row); |
| 46 | row_batch->CommitLastRow(); |
| 47 | return Status::OK(); |
| 48 | } |
| 49 | |
| 50 | } |
nothing calls this directly
no test coverage detected