MCPcopy Create free account
hub / github.com/apache/arrow / Finalize

Method Finalize

cpp/src/arrow/compute/kernels/aggregate_basic.cc:645–653  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 1

OKFunction · 0.50

Tested by

no test coverage detected