| 571 | } |
| 572 | |
| 573 | Status Finalize(KernelContext* ctx, Datum* out) override { |
| 574 | if ((!options.skip_nulls && !this->any && this->has_nulls) || |
| 575 | this->count < options.min_count) { |
| 576 | out->value = std::make_shared<BooleanScalar>(); |
| 577 | } else { |
| 578 | out->value = std::make_shared<BooleanScalar>(this->any); |
| 579 | } |
| 580 | return Status::OK(); |
| 581 | } |
| 582 | |
| 583 | bool any = false; |
| 584 | bool has_nulls = false; |