| 116 | explicit NullImpl(const ScalarAggregateOptions& options_) : options(options_) {} |
| 117 | |
| 118 | Status Consume(KernelContext*, const ExecSpan& batch) override { |
| 119 | if (batch[0].is_scalar() || batch[0].array.GetNullCount() > 0) { |
| 120 | // If the batch is a scalar or an array with elements, set is_empty to false |
| 121 | is_empty = false; |
| 122 | } |
| 123 | return Status::OK(); |
| 124 | } |
| 125 | |
| 126 | Status MergeFrom(KernelContext*, KernelState&& src) override { |
| 127 | const auto& other = checked_cast<const NullImpl&>(src); |
nothing calls this directly
no test coverage detected