| 85 | } |
| 86 | |
| 87 | Status MergeFrom(KernelContext*, KernelState&& src) override { |
| 88 | const auto& other = checked_cast<const ThisType&>(src); |
| 89 | this->count += other.count; |
| 90 | this->sum += other.sum; |
| 91 | this->nulls_observed = this->nulls_observed || other.nulls_observed; |
| 92 | return Status::OK(); |
| 93 | } |
| 94 | |
| 95 | Status Finalize(KernelContext*, Datum* out) override { |
| 96 | if ((!options.skip_nulls && this->nulls_observed) || |