| 358 | } |
| 359 | |
| 360 | Status MergeFrom(KernelContext*, KernelState&& src) override { |
| 361 | const auto& other = checked_cast<const ThisType&>(src); |
| 362 | this->count += other.count; |
| 363 | this->product = |
| 364 | MultiplyTraits<AccType>::Multiply(*out_type, this->product, other.product); |
| 365 | this->nulls_observed = this->nulls_observed || other.nulls_observed; |
| 366 | return Status::OK(); |
| 367 | } |
| 368 | |
| 369 | Status Finalize(KernelContext*, Datum* out) override { |
| 370 | if ((!options.skip_nulls && this->nulls_observed) || |