| 148 | }; |
| 149 | |
| 150 | Status Consume(compute::KernelContext* ctx, const compute::ExecSpan& batch) override { |
| 151 | ARROW_ASSIGN_OR_RAISE( |
| 152 | auto rb, batch.ToExecBatch().ToRecordBatch(input_schema, ctx->memory_pool())); |
| 153 | values.push_back(std::move(rb)); |
| 154 | return Status::OK(); |
| 155 | } |
| 156 | |
| 157 | Status MergeFrom(compute::KernelContext* ctx, compute::KernelState&& src) override { |
| 158 | auto& other_values = checked_cast<PythonUdfScalarAggregatorImpl&>(src).values; |