| 643 | } |
| 644 | |
| 645 | Status Finalize(KernelContext*, Datum* out) override { |
| 646 | if ((!options.skip_nulls && this->all && this->has_nulls) || |
| 647 | this->count < options.min_count) { |
| 648 | out->value = std::make_shared<BooleanScalar>(); |
| 649 | } else { |
| 650 | out->value = std::make_shared<BooleanScalar>(this->all); |
| 651 | } |
| 652 | return Status::OK(); |
| 653 | } |
| 654 | |
| 655 | bool all = true; |
| 656 | bool has_nulls = false; |