| 130 | } |
| 131 | |
| 132 | Status Finalize(KernelContext*, Datum* out) override { |
| 133 | if ((options.skip_nulls || this->is_empty) && options.min_count == 0) { |
| 134 | // Return 0 if the remaining data is empty |
| 135 | out->value = output_empty(); |
| 136 | } else { |
| 137 | out->value = MakeNullScalar(TypeTraits<ArrowType>::type_singleton()); |
| 138 | } |
| 139 | return Status::OK(); |
| 140 | } |
| 141 | |
| 142 | virtual std::shared_ptr<Scalar> output_empty() = 0; |
| 143 |
nothing calls this directly
no test coverage detected