| 275 | } |
| 276 | |
| 277 | Status ScalarAggregateNode::ResetKernelStates() { |
| 278 | auto exec_ctx = plan()->query_context()->exec_context(); |
| 279 | for (size_t i = 0; i < kernels_.size(); ++i) { |
| 280 | states_[i].resize(plan()->query_context()->max_concurrency()); |
| 281 | KernelContext kernel_ctx{exec_ctx}; |
| 282 | RETURN_NOT_OK(Kernel::InitAll( |
| 283 | &kernel_ctx, |
| 284 | KernelInitArgs{kernels_[i], kernel_intypes_[i], aggs_[i].options.get()}, |
| 285 | &states_[i])); |
| 286 | } |
| 287 | return Status::OK(); |
| 288 | } |
| 289 | |
| 290 | Status ScalarAggregateNode::OutputResult(bool is_last) { |
| 291 | ExecBatch batch{{}, 1}; |
nothing calls this directly
no test coverage detected