| 422 | } |
| 423 | |
| 424 | Status GroupingAggregator::Reset(RuntimeState* state, RowBatch* row_batch) { |
| 425 | DCHECK(!is_streaming_preagg_) << "Cannot reset preaggregation"; |
| 426 | partition_eos_ = false; |
| 427 | streaming_idx_ = 0; |
| 428 | // Reset the HT and the partitions for this grouping agg. |
| 429 | ht_ctx_->set_level(0); |
| 430 | if (output_partition_ != nullptr) { |
| 431 | // Attach all buffers referenced by previously-returned rows. |
| 432 | output_partition_->aggregated_row_stream->Close( |
| 433 | row_batch, RowBatch::FlushMode::FLUSH_RESOURCES); |
| 434 | } |
| 435 | ClosePartitions(); |
| 436 | return Status::OK(); |
| 437 | } |
| 438 | |
| 439 | void GroupingAggregator::Close(RuntimeState* state) { |
| 440 | ClosePartitions(); |
no test coverage detected